Some people joke around saying that next smartphones will be getting viruses. Unfortunately they do get viruses.
With Android type phones you have to be VERY careful with what you install. Do your research on the app before installation.
Apple phones since it is much more restrictive in the app store they very rarely have to deal with viruses.