Browser > Ublock
Local System > hosts-file
Android (root) > Adaway (does hosts-file)
I haven't tried it myself yet, but I've heard that NextDNS is the way to go on iOS.