My bet is that you have some adware or a browser hijacker loaded on your device that is being triggered. Macs are not immune anymore.
Please consider running a scan either with your virus protection platform or malwarebytes (which is free and excels at removing this stuff)
https://www.malwarebytes.com/mac/