Read this document if you think your Apple ID has been compromised. --> https://support.apple.com/HT204145
For iOS 15 or earlier, if you want to see if anyone else has access to your device or accounts, click here --> https://support.apple.com/HT212021
For iOS 16 or later see how Safety Check on iPhone works to keep you safe. https://support.apple.com/guide/personal-safety/how-safety-check-works-ips2aad835e1/1.0/web/1.0
Related materials:
Personal Safety User Guide
https://support.apple.com/guide/personal-safety/welcome/web
> open the Table of Contents and review the articles
A document with general information about security and your Apple ID --> https://support.apple.com/HT201303
Contact Apple for help with Apple ID account security by clicking on this link --> https://support.apple.com/HT204169 "This article provides country-specific Apple Support contact information for customers seeking help with their Apple ID password or other security-related issues."