android is more secure than windows operating system. becasue it is linux based operating system. linux based os is much safer than other os.
Not only that, but also the containerization of the apps helps a lot security-wise.
In simple terms, all the apps on android (and iOS), are independent.
If an attacker gains unauthorized access to an application, this doesn't necessarily mean they can get access to other apps inside the same phone.
With desktop environments, that's not the case.