Best answer by Gregor
Not all manufacturers are including this feature even after upgrading their handsets. Sony for example has striped Xperia phones from this function even after an update to Android Pie. Very good alternative for missing option is app called Twilight which you can download from Google Play Store for free. I am using it myself on my Xperia phone. Here is the link to download that app.