Please try this.
- Open Edge, then click the 3 dots at the top right.
- Choose Settings from the menu.
- Select Privacy, search, and services from the sidebar.
- Scroll to Address bar and search.
- Select Google from the Search engine used in the address bar drop-down menu.
- Select Address bar as the default search engine for new tabs.
- Back in Address bar and search select Manage search engines.
- If you find Yahoo or the other sites in there, delete them and any other search engines you do not want to use.
- Return to Settings.
- Scroll down to the Cookies and Site permissions and click on it.
- Click on Pop-ups and redirects.
- Toggle the Block switch to the On position.
- Also make sure there are no unwanted sites in the Allow section.