Pi hole (free) is good for this kind of thing if you are at home https://pi-hole.net/ I found that pihole did too much so wrote my own. I dont think it has any users, except in my house but it seems to work https://github.com/time4tea-net/py-hole/blob/master/README.m...
But does it work on outside home and on 4G?
Downside: Battery life takes a slight hit due to encryption.
[0] https://www.digitalocean.com/community/tutorials/how-to-bloc...