Have you ever thought about reducing the brightness of your screen or activating Android's night mode?
I say this because these are useful solutions to avoid having to use extra apps or scripts.
The solution I think could prove the best with it having to stress on this and that set up. Reducing the brightest of your device either manually or put it on auto so, it adjust based on the brightness of your environment.other than this, the switch between light and dark mode would be another cool way around this.
Other than this, I don’t find it much of an issue down here, the auto brightness setup does the trick and additionally, I turn on eye protection to protect my vision from those blue rays during screen time.