Spyware could create folders or files in a different format in your storage. They may use it to record your activity and then upload it to the server when your data signal is strong. So to detect spyware in your phone, check the storage, if you see unusual files or folders there, then it could be due to spyware.