Thanks, but I tried that, not sure why it didn't work.
I put the .htaccess file in the root directory of the site and then the content is:
"
AddType application/x-httpd-php74 .php
Header unset Server
Header unset X-Powered-By
Header set X-Content-Type-Options "nosniff"
Header set X-Frame-Options"DENY"
"
It's strange that “set” works, but “unset” does not.