Short answer: To remove pop-up ads in Firefox, first work out what kind of pop-up you have. Real pop-up windows from websites are handled by Firefox’s built-in blocker under Settings, then Privacy and Security, then Permissions; make sure “Block pop-up windows” is ticked and remove unfamiliar exceptions. Ads that appear in the corner of your screen even when Firefox is minimized are web push notifications; revoke them in the Notifications settings in the same section. Ads injected into every site, or new tabs that open by themselves, usually come from an add-on; check about:addons in Troubleshoot Mode. Full-screen “virus detected” pages are scam sites, not infections. If pop-ups also appear outside Firefox, you have adware on the computer itself.
Five kinds of “pop-up” and why the fix differs
People use “pop-up” for very different things, and the wrong fix wastes time. Firefox already blocks most classic pop-up windows by default, so if you’re still seeing ads, it’s likely one of the other types. Use the table to identify yours.

| What you see | Type | Where to fix it |
|---|---|---|
| A new small window opens when you click on a site | Site pop-up window | Pop-up blocker and exceptions |
| Ads slide in at the screen corner, even with Firefox minimized | Web push notifications | Notification permissions |
| Extra ads, banners or links on every website, including ones with no ads normally | Injected ads | Add-ons |
| A full-screen page says your computer is infected, often with a phone number or sound | Scam page or “tech support” pop-up | Close the tab; block notifications; don’t call |
| Ads also appear in other browsers or on the desktop | Adware on the computer | Uninstall programs and scan |
Type 1: site pop-up windows
Firefox’s pop-up blocker is on by default. To check, open the menu (three lines), choose Settings, then Privacy and Security, and scroll to Permissions. The checkbox “Block pop-up windows” should be ticked (the exact wording varies slightly between versions). Click the Exceptions button next to it. Any site listed there is allowed to open pop-ups. Remove sites you don’t recognize or no longer trust, then click Save Changes.
When Firefox blocks a pop-up, it shows a yellow info bar under the address bar. Avoid clicking “Allow pop-ups” on unfamiliar sites; that adds them to the exception list. Some pop-ups still get through because they’re triggered by your own click (Firefox allows a pop-up that you directly cause) or because they’re not really separate windows but overlays drawn inside the page. Overlays aren’t something the pop-up blocker can catch; content blocking in Firefox’s Enhanced Tracking Protection can reduce some, and leaving the site is often the best answer.
Type 2: notification spam
This is the most common cause of “pop-up ads” that people describe as a virus. At some point a site showed a prompt asking to send notifications, often disguised as “Click Allow to prove you’re not a robot” or “Allow to watch the video”. Once allowed, that site can push ads to your screen whenever Firefox is running, even if the site isn’t open.
- Go to Settings, then Privacy and Security, then Permissions.
- Next to Notifications, click Settings.
- Select any site you don’t recognize and click Remove Website, or set its status to Block.
- Tick “Block new requests asking to allow notifications” if you never want to see the prompt again.
- Click Save Changes.
On Firefox for Android, open Settings, then Site permissions, then Notifications, and also check the Android system notification settings for Firefox. Our guide to Firefox homepage hijacks covers notification spam alongside new tab takeovers if both are happening.
Type 3: ads injected into every site
If you see ads on sites that don’t normally carry any, links in text turning into ads, or random new tabs opening, an add-on is the usual cause. Some add-ons start out legitimate and are later sold to a new owner who adds advertising code.
- Open the menu, choose Help, then Troubleshoot Mode, and restart. This temporarily disables all add-ons and custom settings.
- Browse the sites where ads appeared. If they’re gone, an add-on is responsible.
- Restart normally, open about:addons and disable add-ons one at a time to find the culprit, then remove it.
- Be suspicious of add-ons you don’t remember installing, PDF converters, coupon finders, video downloaders and “search helpers”.
Also check about:policies. If it shows active policies on a home computer that isn’t managed by an employer or school, a program may have installed them to force add-ons or settings. Our Firefox search redirect guide explains how to trace and remove policy-based changes.

Type 4: fake virus alerts and tech support pages
A full-screen page saying “Your computer is infected”, sometimes with a countdown, alarm sound or phone number, is a scam website, not a real detection. Firefox can’t scan your computer for viruses, and real antivirus alerts come from Windows Security or your installed security software, not a web page. Close the tab. If it won’t close, press Ctrl+Shift+Esc on Windows to open Task Manager and end Firefox, or Force Quit on a Mac. When you reopen Firefox, don’t restore the previous session.
Never call the number on the page or allow remote access. If you already did, read our guide on responding after a tech support scam.
Type 5: adware on the computer
If pop-ups also appear in Edge or Chrome, or on the desktop, the problem is outside Firefox. On Windows, open Settings, then Apps, then Installed apps, sort by install date and uninstall anything you don’t recognize from around the time the ads started. Then run a full scan with Windows Security. Our Windows adware guide covers scheduled tasks and policies that bring ads back after removal. Chrome users seeing the same symptoms can follow our Chrome pop-up ads guide.
Last resort: Refresh Firefox
If none of the targeted fixes work, Refresh Firefox resets the browser to its default state while saving essentials such as bookmarks, browsing history, passwords, cookies and open windows. It removes add-ons, themes and customizations. Open the menu, choose Help, then More troubleshooting information, and click Refresh Firefox. Afterwards, reinstall only the add-ons you need, from addons.mozilla.org.
Refresh doesn’t remove enterprise policies set outside Firefox or adware installed on the computer, so if ads return after a refresh, go back to Type 5.
Preventing pop-up ads from coming back
- Block new notification requests unless you rely on web notifications for email or chat.
- Install add-ons only from addons.mozilla.org and review the permissions they request.
- Remove add-ons you haven’t used in months.
- Keep Firefox updated so security fixes and blocklist updates apply.
- Download software only from the developer’s official site, and choose custom install to untick bundled extras.
Frequently asked questions
Why do I still get pop-ups with the blocker on?
Most remaining pop-ups are notifications you allowed, overlays drawn inside the page, or ads from an add-on or adware. The pop-up blocker only stops separate windows opened without your click.
Is a Firefox pop-up saying I have a virus real?
No. Web pages can’t scan your computer. Close the tab and don’t call any number shown. Use Windows Security or your installed antivirus if you want to check.
Will Refresh Firefox delete my passwords?
No. Mozilla says Refresh keeps bookmarks, history, passwords, cookies and other essential information, but removes add-ons and customizations.
Do ad blocker add-ons stop pop-up ads?
Reputable content blockers reduce ads inside pages, but they don’t remove notification permissions you already granted or adware installed on the computer.



