Update. I have found out that a browser extension called turn off the lights causes the problem.