I don't know that that is necessarily a sign of spyware.
It may be worth doing a Factory Reset. If you decide to do so, let us know if you need advice in backing up your personal data beforehand.
Put your phone into safe to see if its something you got installed that causing the issue.
Bring up the menu to turn off your phone and long press Power off.
My Mother had a similar issue, so uninstalled all the grandkids games and phone back to normal.