The Google Play Store offers a way to scan the device for malicious programs by opening the Play Store, clicking on your profile, and selecting Google Play Protect. Some manufacturers provide their own security programs, like Samsung Knox. If all else fails, factory reset your device by going into Settings, locating the Reset menu, and following the directions.