It seemed to have occurred as a result of some app that I installed. But I've looked through most of the apps and I just cannot see which one would be cause an issue.
What device? Android Pie (at least on Pixel devices) introduced Night Light which will do this.
If you need additional help or have more questions or details to share, please join the site so you can reply in this thread. See this link for instructions on how to join Android Central.