## If you are rooted:
Install AdAway and use the root method; this will modify the system hosts file and redirect the requests to domains that are used to serve ads to 127.0.0.1.
Some apps refuse to function if they can't fetch ads, so AdAway has a webserver that listens on 127.0.0.1 that serves a blank webpage to those apps. Follow the directions in AdAway to install the CA certificate in your device.
## If you aren't rooted:
Go to Settings and search "Private DNS", set this to dns.adguard.com, this is AdGuard's DNS, and it blocks requests to ad sites (not sure how, but it may not return an IP address or return a bogus one). This method will work on any device as long as you can change the DNS that the device uses (including iPhones).