How to Dim Your iPhone Screen At Night

Settings –> General –> Accessibility –> Zoom –> Zoom Filter –> Low Light.

Works on iOS (iPhone, iPad). There is also a “shortcut” setting in Accessibility to triple-tap and turn it on or off.