safari opens automatically unwanted websites
Hello, i recently downloaded the mojave 10.14.1 edition on my macbook air. After a while, safari started to open automatically different clickbait websites . For example i may be watching a video on youtube and a new tab opens, out of nowhere, and it redirects me to a new website. Can anyone help me this issue?
Thank you for your help.
MacBook Air, macOS Mojave (10.14.1)