Sounds like AdWare at the very least...
The free Malwarebytes may take care of it...
https://www.malwarebytes.com/mac/
Or...
EtreCheck is a simple little diagnostic tool to display the important details of your system configuration and allow you to copy that information to the Clipboard. It is meant to be used with Apple Support Communities to help people help you with your Mac. It will not display any personal info.
https://www.etrecheck.com/
Pastebin is a good place to paste the whole report if you capture the URL while there…
https://pastebin.com/
Workable but harder for me to work with...the Note tool on the bottom of this editor's toolbar, as shown in the image, to copy and paste the output from EtreCheck. In a Reply before you click post, look for this to add longer texts...