Checking for viruses on an iPhone using the Settings app is not possible as iPhones do not get viruses.
While iPhones are generally considered to be less susceptible to viruses than other operating systems, they are not immune to all threats. However, these threats are typically not viruses in the traditional sense, but rather malware or other malicious software.