Ok what I’d do is if you have a storage drive upload all your photos/important stuff onto there, I wouldn’t suggest connecting to a computer just yet though because maybe if there is a virus it could transfer (idk tho)
Then it sounds dumb but make sure ur updated to the newest software, then check for any weird apps or if there’s a way to see what ur battery usage has been mostly on. If u seriously think it’s hacked id recommend like a full factory reset after you’ve taken off important stuff and change any sensitive info that a hacker might have gained access to