Force a reboot and check that you get the star burst circle graphic when it is charging.
Developer options allows setting to screen always on on charger.
Safe boot and clearing cache can also help along with it being a side effect of misconfigured settings and app prefs.