The solution to this problems depends on the browser you are using but for example in chrome would be :
1.Go to “chrome://flags” in the URL bar and hit Return/Enter
2.In the search box at the top, type in “autoplay”
3.Look for “Autoplay policy” and pull down the submenu, then choose “Document user activation is required”
4.Relaunch Chrome for the setting to take effect
Another solution will be to use a new script called anti-adblock-killer has been developed that allows you to keep your Adblock active when you visit a website equipped with an Adblock detector, and this asks you to deactivate it. The script "tricks" the web, making it believe that you do not have Adblock enabled, and you can access the content without problems and of course without seeing publicity.
The easiest way to get to the desktop version of a website is by selecting the desktop view link on the page itself - if it is provieded! Not every website has this option, so of course your described methods are usefull in this cases as a quick workaround.
You can also stop videos from playing automatically in Facebook News Feed.
You can turn off Facebook video autoplay settings on or off if you want to stop videos from playing automatically on your Windows computer:
Click Settings > Click Videos > Autoplay Videos Drop-down Menu > Select Off.
I agree with Masood that there is no clear answer - it depends on the technology you need use / develop for or software you need to use thus it is very subjective. If you need to develop for any Apple API macOS is a must. But you may install your Hackintosh and run it on regular PC. Microsoft came out with .NET Core which allows to white .NET C# for any OS in any OS. If you want to combine both world at the same time you may use Virtual Machines or when on macOS you can use Parallels or VMWare Fusion. Each 'world' has its cons and pros. Last but not least, I would not say that Mac are more secured - macOS is based on Unix thus it is safer than Windows but still has vulnerabilities - no software is perfect.
To get rid of pop-ups and pop-unders on your computer, add an extension of plugin to your Web browser called a pop-up blocker. The four major Web browsers -- Chrome, Firefox, Internet Explorer and Opera -- all have plugins to stop pop-ups in their tracks.