There are DNS Ads blocking solutions on market... they works for all web browsers and almost all* websites..
I use Nextdns.io, for which I simply put DNS addresses in router configuration.
All clients (Mac, pc, iPhone, iPad, android) in network (ethernet, wifi) have automatically blocked ads on almost all* websites...
You can also configure NextDNS on any machine - simply by changing DNS configuration (pc/Mac/linux) or installing NextDNS mobile app (on mobile)..
* - excluding big 5, for which DNS solutions don't work: Google, YouTube, Facebook, Instagram or TickTok...
There are many solutions like that: AdGuard DNS, internal Ad Blocker on Unifi routers/consoles, Pi-Hole...
THis works very well here on ipcamtalk...