Anti-Malware (also known as anti-virus or A/V) software is provided on devices running Windows 8.1, Windows 10, Windows 2016, Windows 2019, and MacOS.
See this wikihow article for instructions on turning on Windows Defender for your version.
For Apple users the native anti-malware (or antivirus) functionality works in the background, examining applications and ensuring they don’t match a list of known-bad applications.