Why is my screen fading to black but still responsive

my moto e5 keeps fading to black. it still works because i can hear the buttons being clicked an by memory open YouTube and will hear the video

crwdns2934089:0crwdne2934089:0 crwdns2934093:0crwdne2934093:0

crwdns2934109:0crwdne2934109:0

crwdns2889612:0crwdne2889612:0 0
crwdns2934285:0crwdne2934285:0