You can prevent DNS spoofing attacking, which will give an harmful (fake) IP of an domain, to steal your password by manually config your DNS on device instead of you DNS gave from Router
Example On Android I use DNS Changer to fast change my DNS to Cloudflare DNS, I never use default DNS from router or ISP because it is not safe and not reduce ads
For someone need link as option in case others apps not work, you can get DNS changer on CHPlay for Android:
https://play.google.com/store/apps/details?id=com.hamatim.dnschanger