“Your Phone Is Infected” Pop-Ups on iPhone and Android: Why a Web Page Can’t Scan Your Phone, Closing It Safely and Stopping Notification Spam

By Information Security Asia · Updated November 30, 2026 · 6 min read

“Your Phone Is Infected” Pop-Ups on iPhone and Android: Why a Web Page Can’t Scan Your Phone, Closing It Safely and Stopping Notification Spam

Short answer: A “your phone is infected” or “virus detected” pop-up that appears while you browse is a scam from a website or ad, not a real scan. Web pages cannot inspect the apps or files on your phone. Do not tap any button on the pop-up, do not call numbers shown and do not install the app it recommends. Close the browser tab, or swipe the browser away from recent apps if the page will not close. Then clear that site’s data, block notification permissions for sites you do not trust and turn on pop-up blocking. If the warnings return as notifications or calendar events, remove the site’s notification permission or the subscribed calendar. Real warnings come from Google Play Protect on Android, not from a web page.

Why the pop-up cannot be real

Phone browsers run each website in a sandbox. A web page can see basic information such as your browser type, screen size and approximate location from your IP address, but it cannot read your apps, files, messages or system settings. It cannot run a virus scan. When a page claims to have detected “4 viruses” or says your battery is “damaged by malware”, it is displaying a pre-written animation designed to frighten you.

“Your Phone Is Infected” Pop-Ups on iPhone and Android: Why a Web Page Can’t Scan Your Phone, Closing It Safely and Stopping Notification Spam

The pages often know your phone model and display it prominently: “Your Samsung Galaxy is 28.1% damaged.” That detail comes from the browser’s user agent string, which every website receives. It is not evidence of a scan.

What the scam wants you to do

Pop-up asks you to What actually happens
Tap “Clean now” or “Remove virus” You are sent to an app store listing for a cleaner, VPN or booster app that earns the scammer affiliate fees, or to a paid subscription
Install an app or APK from a link On Android, a sideloaded app may be adware, a banking trojan or spyware
Call a support number Tech support scammers charge for fake repairs or ask for remote access and banking details
Allow notifications The site can send fake virus alerts to your notification shade indefinitely
Add a calendar or profile (iPhone) Spam events with scam links fill your calendar, or a profile changes settings
Enter card details to “renew protection” Card theft or unwanted subscription charges

The fake alerts often impersonate Apple, Google, Samsung, Norton or McAfee, and use countdown timers and vibration to create urgency.

How to close the pop-up safely

Do not tap anything inside the pop-up, including buttons that say Cancel, Close or OK. On scam pages, every button may lead to the same place.

iPhone

  1. Swipe up from the bottom of the screen (or double-press the Home button) to open the app switcher.
  2. Swipe Safari away to close it.
  3. Open Safari again; if the page reloads, tap the tabs button and close that tab by tapping the small X, or long-press the tabs button and choose Close All Tabs.
  4. If it still returns, turn on Airplane Mode briefly, open Safari and close the tab, then turn Airplane Mode off.

Android

  1. Tap the recent apps button or swipe up and hold to open the app overview.
  2. Swipe Chrome, Samsung Internet or your browser away.
  3. Reopen the browser, open the tabs view and close the offending tab.

Clean up so it does not come back

On iPhone (Safari)

  • Settings, Apps, Safari, turn on Block Pop-ups and Fraudulent Website Warning.
  • Settings, Apps, Safari, Clear History and Website Data, to remove data the site stored. To target one site, use Advanced, Website Data and delete the specific domain.
  • Check Settings, Notifications for any website listed under Safari or web apps, and turn notifications off for sites you do not recognise.
  • If fake virus alerts appear as calendar events, open Settings, Apps, Calendar, Calendar Accounts, and delete any subscribed calendar you did not add. Our guide to removing iPhone calendar spam walks through this.
  • Check Settings, General, VPN and Device Management for profiles you did not install.

On Android (Chrome)

  • Chrome, three-dot menu, Settings, Site settings, Notifications: remove any site you do not trust. This is the most common reason fake alerts keep appearing in the notification shade.
  • Site settings, Pop-ups and redirects: make sure it is blocked.
  • Settings, Privacy and security, Safe Browsing: choose Standard or Enhanced protection.
  • Delete browsing data for the past few days, including cookies and site data.
  • Samsung Internet users can find the same controls under Settings, Sites and downloads, and Notifications.

If you swipe down and see a notification with a virus warning, long-press it to see which app or site sent it, then turn off notifications for that source. Our guide to Chrome pop-up ads that will not stop covers notification spam in detail.

When the pop-ups appear outside the browser

If full-screen ads or warnings appear on your home screen, over other apps or when you unlock an Android phone, the source is probably an installed app with adware behaviour rather than a website. Check Settings, Apps for recently installed apps you do not use, especially cleaners, flashlight apps, wallpaper apps and games. Check Settings, Apps, Special app access, Display over other apps for apps that can draw over the screen. Uninstall suspicious apps and run a Play Protect scan. Our guide to Android adware removal shows how to identify which app is showing the ads.

“Your Phone Is Infected” Pop-Ups on iPhone and Android: Why a Web Page Can’t Scan Your Phone, Closing It Safely and Stopping Notification Spam

On iPhone, apps cannot display pop-ups outside themselves, so out-of-browser warnings almost always come from calendar subscriptions, notifications from a website you allowed, or a configuration profile.

What genuine security alerts look like

On Android, Google Play Protect is the built-in malware scanner. Its warnings appear as system notifications or dialogs titled Play Protect, often offering to uninstall or disable a harmful app. They never ask you to call a number or pay. Samsung devices may show alerts from built-in device protection. Our guide to Play Protect messages decodes each one.

iPhones do not run traditional antivirus scans and Apple does not show virus warnings in web pages. Security messages from iOS appear as system alerts in Settings, such as compromised password warnings in Passwords, or as Safari’s red Fraudulent Website Warning page, which blocks a site rather than offering a cleanup.

If you already tapped, installed or called

  • Installed an app from the App Store or Play Store: uninstall it, then check your subscriptions in the store settings and cancel any you did not intend. Request a refund through Apple or Google if you were charged.
  • Installed an APK on Android: uninstall it, revoke Install unknown apps permission from the browser, review accessibility and device admin permissions, and run Play Protect.
  • Called a number: if you gave remote access, card details or banking logins, contact your bank immediately and change passwords from another device. Our article on fake tech support lists real support channels.
  • Entered card details: call your card issuer to block the card and dispute charges.

Frequently asked questions

Can I get a virus just by seeing the pop-up?

On an updated phone, viewing a scam page does not install anything. The risk comes from tapping, installing or entering information.

Why do the pop-ups keep coming back on the same site?

The site may be showing malicious ads, or you may have allowed its notifications. Avoid the site, clear its data and remove its notification permission.

Do I need an antivirus app on my phone?

On Android, Play Protect plus careful app choices covers most people; a reputable security app can add a second layer. On iPhone, keep iOS updated. Avoid cleaner apps advertised through pop-ups.

Should I factory reset my phone?

Not for browser pop-ups alone. Reset only if you installed something you cannot remove or the phone keeps showing ads outside the browser after removing suspicious apps.

Sources

Keep reading