Lower ambient light, including dark mode, leads to pupil dilation, which is a loss of about 0.5 diopters.
Higher ambient light with low-blue content (from lights and screens), where the room and screen are matched has several benefits.
Natural light is always best and only light mode screens can match natural light.