When your search engine keeps changing to Yahoo, it's most likely a virus, and you can fix it by resetting your browser. Here ...
You can change your default search engine in Google Chrome by heading to your Settings menu on desktop or mobile.