Once you reopen your browser, clear your history and cache. This removes temporary files that might be triggering the redirect.
Sometimes the problem is a program installed on your computer.
Most persistent antivirus pop-ups aren't actually coming from a virus on your computer, but from one of three sources:
Many websites trick users into clicking "Allow" on a browser prompt so they can continue watching a video or proving they aren't a robot. By clicking "Allow," you have actually subscribed to receive push notifications from that site. The site then sends spammy "virus alert" notifications to your desktop, even when your browser is closed.
By closing the window safely, checking your notification settings, and running a malware scan, you can reclaim your screen and browse in peace.