Counter works on computer but not on iphone


I am using the free version of Thunkable for a STEM project. I have created a counting code that works on my computer when I test it live but does not work on my iPhone when I test it. It sets itself back to one. On the computer it counts up. Any help would be greatly appreciated.

Thank you in advance.