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...