Use DNS filtering. I use NextDNS which has a free tier that meets my needs. You can add popular filter lists and your browser will never even see those ads, trackers etc. Or you can use Vivaldi and Firefox of course. But DNS cuts it off before it even gets to your machine.
“For the security” is starting to sound a lot like “for the children”. I hope this works out better than secure boot. When these new ideas emerge that have, let’s call them, “side effects” like disabling ad-blockers or preventing Linux from being installed I am suspicious.