Yes, this is true, but I have a thread in this forum that I discussed about this issue, but I will explain more. Prolonged use of a computer causes migraines due to the light, images, and many of them. I will quote it for you.
3. Headache: Too much sitting on a computer can also cause headaches and migraines. Some reasons that can cause headaches when using a computer may include illumination,patterns , images, etc.
5. Radiation: most computer screens have cathode ray tubes (CRT), which emit X-ray radiation that is extremely bad for the health. Being exposed to radiation can increase one’s risk of cancer, migraines, and tumors. It can also lead to miscarriage or birth defects in pregnant women.
With this quote, I know you will understand more about the effects of prolonged use of computers, laptops, and even smart phones because they’re all called computers.
So solutions to this are: take a short break for sometime; frequently blink the eyes when you are focusing on the screen light; activate night mode (dark mode) at night; reduce the brightness of the phone that will fit the condition of the location and time (like if it’s in the day light, you increase the brightness, and if it's in the dark, you reduce it); Put a screen guide on your phone screen, computers, laptops, and others; it also helps.