Menu

HomeArticlesMobile AppsPC SoftwareFixesExtensionsToolsAboutContactSearch
Home / Fixes / How to Stop Random Ads on Android: Causes and Safe Fixes
Fixes

How to Stop Random Ads on Android: Causes and Safe Fixes

By SoftGuideHub TeamPublished Oct 22, 202610 min read
How to Stop Random Ads on Android: Causes and Safe Fixes
Key takeaways
  • Sudden ads on Android usually come from a recently installed app, a website that sends notifications, or an app allowed to show over other apps. Not every ad means a virus.
  • Start with the simple checks: apps installed in the last few days, browser notifications and special app permissions. Then run Google Play Protect.
  • Private DNS with AdGuard can block many ad and tracker domains, but it does not block every ad. YouTube and many in-app ads can still appear.
  • Keep a factory reset as the last option and back up your data first.

You are using your phone normally and suddenly an ad covers the screen. Maybe it appears on the home screen, when you unlock the phone, or every time you open the browser. It is annoying, and it can be risky if the ad pushes you to install something.

The cause is not always a virus. Free apps show ads by design, websites can send notification spam, and some apps misuse permissions. This guide helps you find the likely cause first, then fix it with safe steps. You do not need to install a "cleaner" app to do any of this.

Sources and accuracy

The Play Protect steps come from Google's official Play Protect help page. The Private DNS hostname and the limits of DNS blocking come from AdGuard's official pages. We read them in October 2026. Settings names change between Android versions and phone brands (Samsung, Xiaomi, Infinix and others), so use the search box inside Settings if a name is different on your phone. Nothing here can promise that every ad will disappear.

Why ads suddenly appear on Android

Here are the most common causes, from the most to the least likely for beginners:

Cause What it looks like
A newly installed app or game Ads started after you installed something
Website notifications Ads or "alerts" appear in the notification bar, even when you are not browsing
An app with permission to display over other apps Ads pop up over any screen, even the home screen
An app installed from outside Google Play Ads and strange behaviour after installing a file from a link or messaging app
Ads inside a free app or game Ads only appear while that app is open (this is normal for many free apps)
Adware or other harmful apps Constant full-screen ads, new icons you did not install, or ads that are hard to close

The point is to identify the source. Treat every step below as a test: change one thing, then check whether the ads change.

Step 1: Check recently installed apps and games

  1. Think about the last two to four days. Did you, or someone else using the phone (for example a child), install a new app, game, theme, wallpaper or "free" tool?
  2. Open the Google Play Store, tap your profile icon and choose Manage apps & device to see recent activity. You can also check Settings > Apps and look for apps you do not recognise.
  3. If the ads began after an app was installed, uninstall it: press and hold the app icon, choose Uninstall (or go to Settings > Apps > the app > Uninstall).
  4. Restart the phone and see if the ads stop.

Pay special attention to apps installed from a link, a message or a website rather than from the Play Store.

Step 2: Scan with Google Play Protect

Google Play Protect checks apps from Google Play and scans for harmful apps from other sources. According to Google's help page, you turn app scanning on like this:

  1. Open the Google Play Store.
  2. Tap your profile icon at the top right.
  3. Tap Play Protect, then Settings.
  4. Make sure Scan apps with Play Protect is on.

If Play Protect finds a harmful app, it can warn you so that you can uninstall it, disable it until you uninstall it, or remove it automatically, according to Google. Follow its recommendation.

You can also use the built-in security or phone-manager app from your phone's maker if there is one (for example the security or device-care tools in Samsung and Xiaomi phones). Use only tools that came with the phone or that you installed from the official Play Store listing of a known company. Do not install an unknown "antivirus" or "booster" only to stop ads, because many of those apps show ads or cause new problems.

Step 3: Turn off website notifications

Notification spam is a very common cause. The ads look like phone alerts, but they come from a website that you allowed once.

In Chrome on Android:

  1. Open Chrome, tap the three dots, then Settings.
  2. Open Notifications (on some versions: Site settings > Notifications).
  3. Look for sites you do not recognise and turn their notifications off.

For other browsers, open the browser's settings and look for Notifications or Site settings. You can also long-press an unwanted notification and tap the info or settings icon to see which app or website sent it.

Step 4: Check special app permissions

Some apps can show content over other apps. If you see ads on top of everything, check these permissions in Settings. The names differ by brand, so use the search box in Settings:

  • Display over other apps (also called "Appear on top" or "Draw over other apps"). Turn it off for any app that does not need it.
  • Install unknown apps. Turn it off for browsers and messaging apps unless you know you need it.
  • Device admin apps. Check that no unfamiliar app is listed.

Examples of where these are often found (names can vary):

Brand Where to look
Samsung Settings > Apps > the three-dot menu > Special access > Appear on top
Xiaomi / Redmi Settings > Apps > Permissions > Special permissions
Infinix / Tecno Settings > Apps > App management, or search "display over other apps"

If you cannot find it, type "display over other apps" in the Settings search box.

Step 5: Use Private DNS with AdGuard to block many ad domains

Private DNS is an Android feature (available on Android 9 and newer) that sends your phone's domain-name lookups through a DNS provider you choose. Some providers filter ads and trackers. AdGuard DNS is one of them.

Steps

  1. Open Settings.
  2. Search for Private DNS. It is usually under Network & internet or Connection & sharing, depending on your phone.
  3. Choose Private DNS provider hostname.
  4. Enter AdGuard's default hostname: dns.adguard-dns.com
  5. Tap Save.
  6. Open a website to confirm that the internet still works.

AdGuard's public DNS page lists dns.adguard-dns.com as the default server, and states that it blocks ads and trackers. AdGuard also offers a non-filtering hostname and a family-protection hostname, so make sure you enter the default one for ad blocking. If AdGuard changes the hostname, use the current one from its official page.

AdGuard also lets you make a personal server address from its dashboard, which looks like your-device-id.d.adguard-dns.com. You only need this if you want to manage settings in your account.

If the internet stops working, go back to Private DNS and choose Automatic or Off.

What Private DNS cannot do

AdGuard's own documentation describes DNS filtering as coarse. It blocks requests to domains on its lists, but it cannot remove an ad that comes from the same domain as normal content, it cannot remove the blank space left behind, and it cannot tell which app sent a request. In practice this means:

  • Some websites will still show ads.
  • Some in-app ads will still appear.
  • YouTube ads are not reliably blocked this way.
  • It does not remove a harmful app. Uninstalling the app is still necessary.

Also remember that a DNS provider can see the domain names your phone looks up. Read the provider's privacy policy before you decide to use it.

Step 6: Restart and compare

After you finish the steps above, restart the phone. Use it for a day and notice whether the ads are fewer or if they stopped. If you changed several things at once, you will not know which one helped, so note what you did.

If ads still appear

  1. Check where the ad appears. An ad only inside one app usually means that app. An ad on the home screen or lock screen suggests an app with the display-over-other-apps permission.
  2. Find the source app. When an ad appears, open the recent apps screen or long-press the notification to see which app it belongs to. Some ads show a small label with the app name.
  3. Try Safe mode. Android's safe mode turns off third-party apps temporarily. If the ads stop in safe mode, an app you installed is the likely cause. The steps for starting safe mode are different for each phone, so search for your phone's model and "safe mode" in the official support pages. Then uninstall suspicious apps one by one after you restart normally.
  4. Update everything. Update Android (Settings > System > Software update) and apps in the Play Store.
  5. Clear the browser's data if ads appear only in the browser: remove site data and notifications for unknown sites.
  6. Review accounts. If you see ads that ask for passwords or payments, do not enter anything. Change important passwords from a different device.

Last option: factory reset

Only do this when nothing else works. A factory reset removes all apps and data. Before you do it:

  1. Back up photos, contacts and important files (for example to your Google account or a computer).
  2. Do not restore apps from an old backup blindly, because you may bring back the app that caused the problem. Install apps again from the Play Store, one at a time.

Use your phone maker's official instructions for the reset steps.

How to avoid ads in the future

  • Install apps from Google Play and check the developer name and reviews first.
  • Keep Play Protect on.
  • Do not allow notifications from websites that you do not know.
  • Do not install apps from links in messages or from "free premium" or modified app sites.
  • Review app permissions once in a while.
  • Let children use a supervised profile or Google Family Link, and check what they install.

Frequently asked questions

Does every ad mean my phone has a virus? No. Many apps and websites show normal ads. The problem is ads that appear outside the app or website, over other screens, or that you cannot close.

Is AdGuard Private DNS safe to use? It is a legitimate DNS service, but it is a third party that sees your DNS lookups. Check its privacy policy and use it only if you are comfortable.

Will Private DNS block YouTube ads? Not reliably. DNS blocking cannot separate ads from videos that come from the same place.

Do I need an antivirus app? Play Protect is built in. If you want another security app, choose a known company and install it only from the Play Store.

What hostname should I enter? For ad blocking, dns.adguard-dns.com. Check the AdGuard page below to confirm that it is still current.

My internet stopped after setting Private DNS. What now? Set Private DNS to Automatic or Off, then check the hostname for typing mistakes.

If the ads look like phone alerts, read our step-by-step guide to stopping Chrome notification spam on Android.

Conclusion

Random ads on Android have several possible causes, so work through them in order: recent apps, Play Protect, website notifications and special permissions. Private DNS with AdGuard is a useful extra layer, but it is not a cure for everything. If the problem remains, use safe mode to find the app that causes it, and keep a factory reset as the final step.

Sources checked: Google Play Protect help page, and AdGuard DNS public DNS, Android setup and DNS filtering pages (October 2026). Menu names differ between Android versions and phone brands, so use the Settings search box when something looks different.

SG
SoftGuideHub TeamEditorial Team

The SoftGuideHub team writes practical software tutorials based on official documentation, and says clearly when something could not be verified.