Have you tried changing either your wifi router or computer/devices to use Ad blocking DNS? The two most popular ones are AdGuard DNS and NextDNS.
With that said, it is typically recommended to use add blocking add-ons in the browsers, etc, because the above DNS blocking options can break websites, etc.