when you use Google as your search engine.

Safari is not a search engine, it's a web browser.

Yahoo is notorious for being hacked or messed with.

Download and install the Mac version of Malwarebytes and run it.

P