I'd recommend a Raspberry pi3b or pi4 running Wireguard and piHole. That will solve all of those issues and will work with as many devices as you need and cross-platform as well.Biggest problem for people posting on this site.... is this site.
You can pay $25/year to Macrumors a year and hope that also eliminates all the rogue javascript or potential other garbage.
Or you can pay 1.99 for "Wipr" or AdGuard or an extension in the AppStore that blocks crypto-mining/ads/tracking etc.
This has been mentioned in about every thread about battery life over the last 4-5 days. This site is killing your battery more than anything else if you spend any time on it.