Go to Settings > Display & Brightness > Brightness > True Tone and toggle it on. This setting is switched on by default, but ...