Dry eyes means there is not enough tears to moisturize the eyes.
From your question, I can deduce that you basically get dry eyes from staring at bright things.
For your own case I will suggest decreasing your gadgets screen brightness. You should also enable night mode when using your gadgets in the night.
In general users are urged to avoid dry dusty environment that may increase the dryness. Artificial tears can also be used to mitigate the effect of dryness. Usage of humidifier is also encouraged indoors.