To remove a virus from an iPhone, close the scam tab, update iOS, delete apps you do not recognise, remove unknown profiles in Settings, clear Safari history and website data, remove spam calendars, restart the phone and change your Apple Account password. If symptoms persist, restore from a clean backup or erase all content and settings as a last resort.
Key takeaways
- True iPhone viruses are rare; most scares are scam pop-ups, adware profiles or rogue apps.
- Work in order: update iOS, delete unknown apps and profiles, clear Safari data, then restart.
- Never tap a virus warning pop-up or call the number it shows; close the tab instead.
A pop-up says your iPhone has a virus and you have minutes to act. Take a breath: that pop-up is almost certainly the scam, not the virus. Real iPhone malware is rare, and the fix is a short list of steps you can do yourself in about twenty minutes.
Can iPhones get viruses?
Yes, but rarely in the way people imagine. A classic computer virus that copies itself from file to file is very hard to install on a non-jailbroken iPhone, because iOS sandboxes every app and only allows installs from the App Store.
What most people call a "virus" on an iPhone is one of four things: a scam web page pretending to be a security warning, an app that behaves badly (often a free app with aggressive ads), a malicious configuration profile that changes settings, or a hijacked calendar full of spam events with phishing links. Jailbroken phones are the exception — removing Apple's protections makes real malware far more likely.
That distinction matters because the fix is different. You do not need to buy a "virus cleaner" app — in fact, apps that claim to scan your whole iPhone cannot do what they promise under App Store rules, and some are scams themselves.
Apple's guidance on social engineering schemes describes the same pattern: misleading pop-ups and ads that claim your device has a security problem, unwanted calendar invitations and subscriptions, and apps that ask to install configuration profiles that can then control your device.
How do you know if your iPhone has a virus?
Check for specific signs rather than guessing: pop-ups claiming infection, apps you did not install, a battery draining fast, strange calendar events, or unknown profiles in Settings. One sign alone may be innocent; several together deserve action.
- Scare pop-ups: full-screen warnings that your iPhone is infected, with a countdown or a phone number to call.
- Apps you do not recognise: check Settings, then Apps, for anything you did not install or that appeared recently.
- Battery or data draining fast: an app running constantly in the background can be a clue — check Settings, Battery.
- Spam calendar events: invitations or alerts advertising prizes, crypto or "virus" warnings.
- Changed settings: a new home page, search engine or VPN you did not set up.
- Unknown profiles: anything listed under Settings, General, VPN and Device Management that you did not add.
If you are unsure whether your phone itself is compromised, our guide to how to know if your phone is hacked covers the wider checks, including unknown devices signed in to your account.
What should you NOT do first?
Do not tap anything inside a virus warning pop-up — not even a button labelled Close or Cancel — and never call the number it shows. Those buttons and numbers lead to the scam.
Close the tab instead: tap the Tabs button in Safari and close that tab, or tap the address bar and type a different site. Do not download a "cleaner" app from a link in the warning, and do not enter your Apple Account password on any page that opened from it.
Apple's guidance on scam pop-ups gives the same first advice: do not believe a pop-up warning about a virus, do not call the number it shows, and simply navigate away from the page or close the tab.
How do you remove a virus from an iPhone? The 9 steps
Work through these steps in order and stop as soon as the problem is gone. The early steps are quick and do not touch your personal data; only the last one erases the phone.
Step 1–2: Close the tab and update iOS
Close the scam tab, then open Settings, General, Software Update and install any available update. Updates are how Apple closes the security holes real attacks use, so this step matters even if the problem looks like a simple pop-up. Turn on automatic updates while you are there. Apple's guide to updating your iPhone lists the same steps.
Step 3: Delete apps you do not recognise
Touch and hold the app icon, tap Remove App, then Delete App. Choosing Remove from Home Screen only hides it, which does not help. Check Settings, then Apps, for apps you removed from the Home Screen but that are still installed. If an alert says an app contains malware and cannot be opened, tap Delete App in the alert itself.
Step 4: Remove unknown configuration profiles
Open Settings, General, VPN and Device Management. If you see a profile you did not install — especially one installed after visiting a website — tap it, tap Remove Profile, enter your passcode and confirm. A legitimate work or school profile will usually be one you recognise; when in doubt, ask your IT team before removing it.
Step 5: Clear Safari data
Open Settings, tap Apps, then Safari, and tap Clear History and Website Data. This removes the cookies and cached data that keep redirecting you to scam pages. In Chrome, open the app, tap the menu, then History, then Clear Browsing Data, and select All Time with cookies and cached files checked.
Step 6: Remove spam calendars and subscriptions
Open Calendar, tap Calendars, tap the info button next to any calendar you did not subscribe to, and tap Unsubscribe or Delete Calendar. For a single unwanted event, tap it, tap Report Junk, then Delete and Report Junk. Also check Settings for subscriptions you do not recognise.
Step 7: Restart the iPhone
Press and hold a volume button and the side button until the power-off slider appears, drag it, wait 30 seconds, then hold the side button until the Apple logo appears. A restart clears temporary processes and web pages that may be causing the symptoms.
Step 8: Change passwords and check your account
If you entered a password on a suspicious page, change it from a trusted device. Start with your Apple Account password, then email and banking. Check Settings, tap your name, and review the device list — remove any device you do not recognise. Turn on two-factor authentication if it is not already on. You can check whether a password has appeared in known breaches with our free pwned password checker.
Step 9: Factory reset (last resort)
If symptoms persist after all of the above, back up what you can, then go to Settings, General, Transfer or Reset iPhone, Erase All Content and Settings. Restore only from a backup made before the problem started — or set the phone up as new. Apple's factory-reset guide walks through backing up first, then erasing and resetting the device.
Which removal method should you use?
Most problems clear with the quick, non-destructive steps. Only a factory reset erases your data, so try everything else first and back up before you reset.
| Method | What it fixes | Erases your data? |
|---|---|---|
| Close scam tab | Pop-up warnings | No |
| Update iOS | Security holes | No |
| Delete unknown apps | Rogue apps | No |
| Remove profiles | Hijacked settings | No |
| Clear Safari data | Redirects and trackers | No, except saved logins on sites |
| Factory reset | Anything left | Yes, back up first |
What is Safety Check, and should you run it?
Safety Check is the closest thing an iPhone has to a built-in security scan, though it looks at access, not files. It shows which people, devices and apps have access to your data.
Open Settings, Privacy and Security, then Safety Check. Review who can see your location and data, which devices are signed in, and which apps have sensitive permissions. Remove anything you do not recognise. It takes five minutes and is worth doing after any scare, even if the other steps already fixed the symptoms.
When should you use Lockdown Mode?
Lockdown Mode is an extreme, optional protection for people at high risk of targeted attack — journalists, activists and public figures. It limits some features, such as certain message attachments and web technologies, to reduce the attack surface.
Most people do not need it. If you believe you are a target of a sophisticated, targeted attack — not a mass scam pop-up — turn it on in Settings, Privacy and Security, Lockdown Mode, and contact Apple Support. For everyone else, updated iOS, App Store-only installs and two-factor authentication are enough.
How do you prevent it happening again?
Prevention is mostly habits: install apps only from the App Store, keep iOS and apps updated, and never tap virus warnings or install profiles from websites you do not trust.
- Keep iOS updated and turn on automatic updates, including background security improvements.
- Install only from the App Store and read an app's reviews and permissions before installing.
- Do not jailbreak. Jailbreaking removes the sandbox that keeps malware out.
- Use strong, unique passwords and two-factor authentication on your Apple Account and email.
- Be wary of free Wi-Fi prompts and "free" offers that ask you to install a profile — see our guide to how to secure your Wi-Fi for the wider picture.
When should you contact Apple Support?
Contact Apple Support if symptoms persist after a factory reset, if money was taken, or if you believe your Apple Account was compromised. Do not call a number from a pop-up.
Go to Apple's official support site or use the Apple Support app, and have your device details ready. If you lost money, also contact your bank and report the fraud — in the US, report it to the FTC at reportfraud.ftc.gov and to the FBI's IC3 if money was lost.
The bottom line
An iPhone "virus" is almost always a scam page, a bad app or a hijacked setting — and all three are fixable without paying anyone. Close the tab, update iOS, delete what you do not recognise, clear Safari and restart.
If you entered a password anywhere suspicious, change it now and check it against known breaches with our free pwned password checker. And if the phone still misbehaves after a reset, let Apple Support take a look — the number on a pop-up is never the right one.
Frequently asked questions
Can iPhones get viruses?
A classic self-copying virus is very hard to install on a non-jailbroken iPhone because iOS sandboxes apps and only allows App Store installs. What most people call a virus is usually a scam web page, a rogue app, a malicious configuration profile or a hijacked calendar.
How do I know if my iPhone has a virus?
Look for pop-ups claiming your phone is infected, apps you did not install, a battery draining unusually fast, strange calendar events, settings you did not change, or unknown profiles in Settings under General, VPN and Device Management.
Do I need antivirus on my iPhone?
No traditional antivirus is needed on a non-jailbroken iPhone, and App Store rules mean no app can scan the whole system. Keep iOS updated, install apps only from the App Store, and use Apple's built-in protections instead.
Will a factory reset remove a virus from my iPhone?
Yes, erasing all content and settings removes apps, profiles and settings, including anything malicious. Back up first, and restore only from a backup made before the problem started, or set the phone up as new.
What should I do if a pop-up says my iPhone has a virus?
Do not tap anything in the pop-up, including buttons that look like Close. Close the Safari tab, clear Safari history and website data, and restart your phone. Apple will never warn you about a virus through a web pop-up.
Can a virus on my iPhone steal my passwords?
A rogue app or a phishing page can steal passwords you type into it, and a malicious profile can redirect traffic. If you entered a password on a suspicious page, change it from a trusted device and turn on two-factor authentication.
Should I use Lockdown Mode on my iPhone?
Lockdown Mode is an extreme protection for people at high risk of targeted attack, such as journalists and activists. It limits some features. Most people do not need it, but it is available in Settings under Privacy and Security.
How do I remove spam calendars from my iPhone?
Open Calendar, tap Calendars, tap the info button next to a calendar you did not subscribe to, and tap Unsubscribe or Delete Calendar. For a single unwanted event, tap it and choose Report Junk, then Delete and Report Junk.
Sources
- Apple Support — Recognize and avoid social engineering schemes including phishing messages, phony support calls, and other scams
- Apple Support — Update your iPhone or iPad
- Apple Support — Delete your Safari history, cache, and cookies on iPhone
- Apple Support — How to factory reset your iPhone, iPad, or iPod touch
- FTC — Malware: How To Protect Against, Detect, and Remove It
The engineers and analysts who build Cysoro's domain scanner, email-authentication checks and free security tools. We test what we write about every day — SPF, DKIM, DMARC, certificates, look-alike domains and phishing — and check each guide against the relevant standards, government guidance and vendor documentation.
Checked against Apple Support guidance on iOS updates, Safari data, factory reset and scam pop-ups, and FTC malware guidance.
How we write and fact-check →