I had heard that Mac, IPads and IPhones did not need anti virus even though these days some of the products seem to say that they cover them.
The issues aren't the same with the Mac as compared to iPads and iPhones.
The iPhone (and later the iPad) started from sort of a fresh* system architecture in the mid 2000s. At that point it was very clear that allowing apps free rein over the operating system and hardware was a bad idea.
The Mac operating system however started much earlier. First as NeXTSTEP back in 1989 and later merged with parts of the original Mac operating system around 2000.
So the Mac operating system initially allowed apps much more access to each other, lower levels of the operating system and the hardware than iPhone/iPad allow.
Most experienced Mac users I know do not bother with third party anti-virus/security software, the reasons being:
- there have never been many viruses/malicious software for the Mac (probably due to its ~10% market share)
- Apple have similar built in protections to Defender
- Apple have made better steps at stopping users from accidentally running apps they've downloaded from random places
- the Mac OS has always been more simple and just done less than Windows (providing a smaller attack surface)
- Apple are much quicker to drop support for old technologies/software (lots of Windows vulnerabilities are
in old code that on the Mac would likely have been abandoned years ago)
- Apple have been taking big steps to make the OS and hardware even more secure.
Things Apple have done on the security side in recent years that Windows has been unable to achieve:
- moved all the system software on to a readonly part of the hard drive (preventing malicious code from changing it)
- moved most cryptographic functions to a separately secured processor (so the operating system doesn't even have access to critical security keys)
- encouraged developers to move their apps into sandboxes that restrict what they can do with the OS/other apps
- enabled secure boot by default
- aggressively rolled back the ability of developers to run their code in the very lowest levels of the system
But the Mac is theoretically at least a lot less secure than iPads and iPhones.
* the operating system was built in the foundations of macOS, but with a lot of the higher levels of it removed