Bright, blue-rich light from screens in the evening can suppress melatonin and delay sleep, which then impairs next-day attention and memory. The content’s stimulation doesn’t help either.
Dimming lights and putting screens away an hour before bed supports the sleep your brain needs.