These are two different mediums. You won't get those issues on an Android or Windows tablet/phone either.
Also, I personally don't understand complaints about viruses and pop-ups on Windows. I'm a more advanced user, but still. I've been using PCs for 15-20 years and I've had a grand total of 2 viruses. My family, who are technology-dumb have had maybe 3-4, and only 1 or 2 required me to reformat for them. Pop-ups are easily resolved through using proper browsers and plug-ins.
I'm not an Apple hater, they make good products and for certain markets the products are very suitable. But they are expensive and most users end up paying more than they need to because they want the Apple brand. Nothing wrong with that, but it's the reality.
You'd be amazed at how many people don't have any real time anti-malware and/or firewall protection, or if they do, they have Norton or McAfee.
The former is like parking your car in the bad part of any major city unlocked, with expensive toys sitting on the front seat.
if you're surprised to find out that they were stolen, then you're also likely surprised you've got issues without decent malware.
Norton and MacAfee are crap protection and resource hogs, so even if you don't get a virus, they can bog down your system.
Also, plenty of people don't get Windows updates. That's why Microsquish changed Windows 10 to not even ask you if you wanted the upgrade.
The other thing that happens to most people is that they install some sort of freeware and don't pay attention during the install and various bloatware/addware gets installed.
The solution is trivial simple, ALWAYS click on the "advanced" radio button and it will ask you if you want various items. "just say no".
The primary reason Apple PC's don't get malware is that they are such a small percentage of the PC's out there.
hackers don't write much malware for their OS simply because there a massive larger number of Window's PC's