I’ve been under the impression by Apple users that iPhones are unhackable. What you’re describing seeing below may have little or nothing to do with someone hacking your phone. It sounds like you need to contact Apple or take it to a repair store. It could very well be a hardware issue you’re having. Perhaps you could do a factory reset in the meantime. Changing your Apple account password would be a good idea as well.