Eyelid spasms are usually related to stress, lack of sleep, or too much caffeine, and looking at your phone screen makes it worse because it strains your eyes more. I had one years ago that lasted almost two weeks while I was working under a lot of pressure, and it went away on its own once I slowed down; what helped me was putting my phone down a bit before bed and drinking less coffee. If it doesn't go away in a week or two, or if it comes with pain, blurred vision, or your eyelid starts drooping a little, then yeah, it's worth getting checked by an eye doctor, but in most cases it clears up just by resting more and looking at the screen less.