Many browser problems come from extensions and permissions rather than viruses: endless pop-ups, redirected searches or a changed home page.
Review your extensions
Open the extensions page in your browser and remove anything you do not recognise or no longer use. Fewer extensions means fewer risks and faster browsing.
Check what each extension can access
Be wary of add-ons that can "read and change all your data on all websites" unless that is essential to what they do.
Reset search and home page
In settings, set your preferred search engine and start page. Remove unknown entries from the list of search engines.
Stop notification spam
In site settings, open Notifications and remove sites you do not trust. Block notification requests by default.
Reset the browser if needed
Each major browser has a "reset settings to defaults" option. It disables extensions and clears temporary data without deleting bookmarks or saved passwords.
Install only from official stores
Add extensions only from your browser's official store, and check the publisher, review history and permissions first.