Spying mobile element but playing while runing test

I am Spying mobile element in the page to change the tab. It is working when i record the test but while running the test, it’s not functioning. Please help with the issue.