I have had the same struggles in the past. Try keep the brightness of the screen at its lowest too. I remember listening to a podcast with a ‘sleep’ doc. He said that it is a combination of the type and intensity of light which disrupts our circadian rhythms.
I’m so glad you found the post useful!