Hello zhene258,
Thank you for reaching out in Apple Support Communities. I understand you're concerned about your iPhone possibly being compromised.
Having a fully secure device helps provide a peace of mind. I can help point you in the right direction.
Based on the description you provided, it sounds like your iPhone is experiencing unexpected touch. To help troubleshoot this behavior, I recommend to remove any accessories that is attached to your iPhone. For example, you'll want to remove a case, screen protector and any accessories that your device might plugged into. From there, see if you continue to experience the same behavior with the unexpected touch that's occurring on your iPhone.
In addition, I suggest making sure that your iPhone is updated to the latest version of iOS 13.5.1. Updating the iOS version on your iPhone, helps provide software improvements and enhanced security updates: Apple security updates
There are steps available to help ensure that your Apple ID account is secure. I encourage for you to follow the steps outlined in this helpful article: Security and your Apple ID
Please let us know if you have any additional questions or concerns.
Kind regards.