Troubleshoot Need help

Infected device
Lg aristo
Infected device issues
Phone just goes haywire . it took me around 3mins. To just turn it off
Steps taken to remove the infection
None. I dont know what to do. I need help.
Which Android N phone do you have, Brand and Model?

Which app detected "SMS Spy Generic"? Do you have any Antivirus app installed, which ones?

Have you tried to remove the offending app? What happens?