How to stop ads from showing on your android apps

How to stop ads from showing on your android apps (2022)
One thing that android users hate the most is ads showing up when one is making use of an app most especially video ads that just pop up, and the worst part of it is that it consumes data which can be so annoying.
These ads show up on most apps with in-app purchase items and the only way to stop it is by getting a premium version of the app. But with this tip, you can stop all these ads from showing even when your data service is active.
Note, this tip only works for apps, and also websites with annoying and pop-up ads but, it doesn’t work for YouTube.
How to stop pop-up ads on android
Click on your settings
Select mobile network
Click on DNS settings
Add a new dns private DNS
dns.adguard.com
Save
You don’t need any special app for this to work or does it requires the user to root their phone.