A
VPN like Netguard has ability to restrict everything....including lockscreen ads.
In its Advanced options choose Manage System apps, then in Network options select Lockdown wifi
amd mobile...this lockdown whole intet traffic...then in its home menu you can selectively allow apps like browser, whatsapp etc.
In addition to those you can also block websites using a Host file (eg. from
StevenBlack/hosts)
I guess
Google play version of Netguard does not have Hosts option due to
Google's restrictions, so they provide a direct apk here which does:
M66B/NetGuard
Using such Hosts file with NetGuard, i guess there are no ads in any app even if the app is allowed net access...i don't get any...maybe that's why Google retricts this in its Playstore. But in browsers one got to use extensions like uBlock Origin to block most/all ads...and only browser to provide full extensions support is firefox.
You can also choose which
DNS server to use for data...enable Filter traffic in Advanced options, then edit VPN DNS (primary and secondary, secndary can also be ipv6 dns)).
In
android settings also you can disable apps from using data...but Netguard eventually takes cares when its on as VPN, you just have to allow "Background Data" for Netguard in android settings.
I also use StevenBlack's Hosts file in
Windows...for that one has to convert Unix format Hosts file to Windows format...I use Notepad++ for that (EOL conversion option in Edit menu).