This happened to me and I installed gravity screen as a workaround, which worked fine. However, I had a software issue that locked my phone so I had to factory reset and the problem went away when I did that. It has been a few weeks and it works fine now! Mine was definitely software related, not hardware. Hope this helps!