How Do I Turn Off the Blue Light on My iPhone?
Apples Night Shift mode automatically changes your iPhones screen colors to a warmer temperature.
To use Night Shift mode, you must have an iPhone 5S or later.

Tap and hold theBrightnesscontrol icon.
Tap theNight Shifticon to turn the setting on.
How to Turn Night Shift on in prefs
OpenSettings.

Scroll down toDisplay & Brightness.
TapManually Enable Until Tomorrowto turn the blue light filter on until sunrise tomorrow.
Alternatively, tap the toggle next toScheduledand tap theFrom/Totab to set a custom timeframe.

On theSchedulescreen, selectCustom Scheduleand pick aTurn On/Turn Offtime.
you could also selectSunset to Sunrise.
Does Night Shift Get Rid of Blue Light?
you might find this slider underSettings>Display & Brightness>Night Shift>Color Temperature.
Newer versions have clear lenses to avoid the yellow tint from built-in options.
Macs running macOS Sierra (10.12.4) and later also have a Night Shift mode.
Access it by going toSystem Preferences>Displays>Night Shift.
Just like on iPhone, you’re free to turn it on manually or set up a schedule.