You can turn off blue light on a Mac by enabling the Night Shift feature in your System Preferences.
You can turn off auto-brightness on your iPhone with a few taps, and manually change the phone's brightness in two ways. Here's how to do each.