How to secure phone after hacking detection?

@HelpDeskJules Oh wow, it sounds really stressful! What exactly does a factory reset do—will I lose everything?