How to tell if your phone has malware, and how to remove it safely on iPhone and Android
Pop-ups, a battery that drains overnight, or apps you never installed can point to malware. Learn the warning signs, the harmless explanations, and a safe step by step cleanup for iPhone and Android.

In short
Malware is harmful software installed on a device without your knowledge, usually to steal passwords and money or to push ads. On phones, the most common warning signs are pop-up ads in strange places, apps you do not remember installing, messages you did not send, and a phone that suddenly slows down, freezes or crashes.
If you suspect malware:
- Stop signing in to banking, shopping and email on that phone.
- Update the phone's software.
- Scan and remove: on Android, use Google Play Protect and safe mode; on iPhone, remove unknown apps and configuration profiles.
- Change passwords from a device you trust and turn on two factor authentication.
- If problems continue, back up your photos and contacts, then factory reset.
The rest of this guide explains each step, what usually turns out to be harmless, and what to do afterward.
What malware does on a phone
The US Federal Trade Commission (FTC) describes malware as harmful software, including viruses, spyware and ransomware, that criminals use to steal personal information such as usernames, passwords and bank account numbers. It can also show unwanted ads, lock or scramble your data until you pay, or open the door to more malware.
On phones, malware usually arrives one of four ways:
- A fake or booby trapped app, often from outside the official app store, or promoted through an ad.
- A link in a text or email that leads to a download or a fake sign in page.
- A fake security warning in your browser that pushes you to install an "app" or call a number.
- A configuration profile on iPhone that someone tricked you into installing, which can change settings or route your traffic.
Warning signs to look for
The FTC lists these symptoms of infection. They apply to phones as much as computers:
- The device slows down, freezes or crashes.
- Your browser redirects you to sites you did not mean to visit, or its home page changes.
- You see lots of pop-up ads, including on sites where you would not expect them.
- You get repeated error messages.
- You notice messages or social media posts you did not write.
Other clues worth checking on a phone:
- Apps you do not recognize in your app list.
- Battery or mobile data use that jumps without a change in how you use the phone. Your battery and data screens in Settings show which apps are responsible.
- Calendar invites or notifications full of scary warnings or prize offers.
- Accounts acting strangely, such as password reset emails you did not request.
Rule out the harmless explanations first
Many of these signs have everyday causes. Before you assume the worst:
- Slow phone: often a full storage, an old battery or a pending update. Our tip on freeing up storage on your phone helps here.
- Battery drain: a new app, poor signal, or a big photo backup running in the background can all do it.
- Pop-ups inside one app: some free apps are simply full of ads. If the pop-ups only appear in that app, uninstall it.
- Browser "virus detected" warnings: these are almost always fake web pages, not real infections. Close the tab. The FTC says never to call a phone number shown in a pop-up.
If the signs persist after these checks, or you clicked a suspicious link or installed something just before they started, follow the cleanup steps below.
Before you start: protect your accounts
The FTC's first step is simple: stop logging into online accounts with your passwords or other sensitive information, such as banking and shopping, on the affected device until it is clean. If you need to act on an account urgently, use a different device you trust.
Step by step cleanup on Android
1. Update Android and your apps
Open Settings, tap System, then Software updates, and install anything offered. Google recommends being on Wi-Fi and having at least 75% battery first. Then open the Play Store and update your apps. Updates close the security holes many malicious apps rely on.
2. Run Google Play Protect
Play Protect is built into Android phones with Google Play. Google says it checks apps when you install them, periodically scans your device, and can warn you about, disable or remove harmful apps.
- Open the Google Play Store app.
- Tap your profile icon at the top right.
- Tap Play Protect, then the Settings icon.
- Make sure Scan apps with Play Protect is on.
Back on the Play Protect screen, run a scan if the option is shown. If Play Protect flags an app, tap the warning and choose Uninstall.
3. Remove apps you do not recognize
Open Settings, then Apps, and go through the full list. Uninstall anything you did not install yourself or no longer use, especially apps installed around the time the problems began. If you are not sure what an app is, search its exact name on another device before deciding.
4. Use safe mode to find a stubborn app
If the phone keeps crashing, freezing or showing pop-ups and you cannot tell which app is to blame, Google suggests restarting in safe mode, which temporarily turns off downloaded apps. How to enter safe mode varies by phone maker, so check your manufacturer's support site.
- Restart in safe mode and use the phone normally for a while.
- If the problem goes away, a downloaded app is likely the cause.
- Restart normally, then remove recently downloaded apps one at a time, restarting after each, until the problem stops.
Google notes that safe mode removes some home screen widgets, so take a screenshot first if you want to put them back.
5. If nothing works, factory reset
A factory reset erases everything on the phone. Back up your photos and contacts first (see our backup guide), then follow your phone maker's reset steps. After the reset, update the phone before reinstalling apps, and reinstall only the apps you need, from the Play Store.
Step by step cleanup on iPhone
iPhone malware is less common because apps come from Apple's App Store, but problems still happen, most often through scam websites, unwanted configuration profiles and fake calendar invites.
1. Update iOS
Open Settings, tap General, then Software Update, and install the latest version. Apple fixes security flaws in these updates, sometimes ones that are already being exploited. Our November 2026 iPhone security update article shows how often fixes arrive.
2. Remove configuration profiles you do not recognize
Configuration profiles are meant for work and school devices, but scammers sometimes trick people into installing one.
- Open Settings, tap General, then VPN & Device Management.
- If you see no profiles, none are installed.
- If there is one you did not knowingly install, tap it, tap Delete Profile, and follow the steps.
- Restart your iPhone.
Apple says deleting a profile also deletes the settings, apps and data that came with it. If your phone was issued by an employer or school, ask them before removing anything. Apple's personal safety guide also suggests thinking about your safety first if you suspect someone you know installed it.
3. Delete unknown apps and clean up Safari
Delete any app you do not recognize. If pop-ups only appear in Safari, clear your browsing data: open Settings, tap Apps, then Safari, and tap Clear History and Website Data. Then make sure you do not allow notifications from websites you do not trust.
4. If problems continue, erase and set up again
Apple's steps for a factory reset:
- Back up first, or confirm iCloud Photos and your contacts are synced.
- Open Settings, tap General, then Transfer or Reset iPhone.
- Tap Erase All Content and Settings, then Continue, and follow the prompts.
When the phone restarts, either set it up as new or restore from a backup made before the problems began, so you do not bring the problem back.
After the cleanup
The FTC recommends these steps whenever malware may have reached your accounts:
- Change your passwords for email, banking and shopping, starting with your email, from a device you trust. A password manager makes long unique passwords easy.
- Turn on two factor authentication. Our guide compares the two factor authentication methods.
- Check your statements for charges you did not make, and call your bank if you find any.
- If you think your identity was stolen, the FTC directs you to IdentityTheft.gov for a recovery plan.
- Report it. In the US, report scam ads, sites and messages at ReportFraud.ftc.gov.
If you cannot fix the problem yourself, the FTC suggests contacting your device maker to see if it is covered under warranty, using a tech support company you already know and trust, or asking a knowledgeable friend.
How to avoid malware next time
- Install apps only from the official app store, and read the reviews and requested permissions first. Android is also adding developer verification for apps from every source from January 2027.
- Do not click ads to download software. The FTC says to type the company's address yourself instead.
- Treat unexpected links with suspicion, including QR codes. Our hints on spotting phishing and scanning QR codes safely cover the tricks scammers use.
- Keep automatic updates on. See how to turn on automatic updates on your phone.
Common mistakes
- Installing a "cleaner" or antivirus app from a pop-up. That pop-up is often the scam.
- Calling the number in a warning. The FTC says never to call a phone number that appears in a pop-up.
- Restoring an infected backup. Use a backup from before the problems started.
- Changing passwords on the infected phone. Do it from a clean device.
- Assuming every slow phone is hacked. Check storage, battery and updates first.
Frequently asked questions
What are the signs of malware on a phone?
Common signs include pop-up ads in odd places, a browser that redirects you to sites you did not choose, apps you do not remember installing, messages or posts you did not send, and a phone that suddenly slows down, freezes or crashes. None proves malware on its own, so look for a pattern.
Can iPhones get malware?
It is less common because iPhone apps come from Apple's App Store, but iPhones can still be affected by malicious configuration profiles, scam websites and fake calendar invites, and in rare cases by targeted spyware. Keeping iOS updated is the most important protection.
How do I scan my Android phone for malware?
Use Google Play Protect, which is built in. In the Play Store app, tap your profile icon, then Play Protect. Make sure Scan apps with Play Protect is on in its settings, and follow any warning to uninstall a flagged app.
Will a factory reset remove malware?
A factory reset erases the apps and data on the phone, which removes most malware. Restore only from a backup made before the problems started, or set the phone up as new, and update it straight away.
Do I need an antivirus app on my phone?
Most people do not. Android has Google Play Protect built in, and iPhone apps are reviewed by Apple. Be careful with security apps advertised in pop-ups, because fake security warnings are a common scam.
What should I do after removing malware?
Change the passwords for important accounts from a device you trust, turn on two factor authentication, check your bank and card statements, and report scams at ReportFraud.ftc.gov in the US.
Sources
- FTC: Malware: How To Protect Against, Detect, and Remove It
- Android Help: Use Google Play Protect to help keep your apps safe and your data private
- Android Help: Find problem apps by rebooting to safe mode on Android
- Android Help: Check and update your Android version
- Apple Support: Install or remove configuration profiles on iPhone
- Apple Personal Safety User Guide: Review and delete configuration profiles
- Apple Support: How to factory reset your iPhone, iPad, or iPod touch
- Apple Support: Update your iPhone or iPad