Chosen Solution

A couple months ago, I had the screen replaced on my iPhone X by a local repair shop after it shattered from being dropped on concrete. Since having the screen replaced, the phone will shut off anytime it is dropped or even just jarred slightly. I have also noticed it will shut off if I lean up against something with my phone in my pocket. The only thing that will get it to turn back on is a force restart using the volume and power buttons. Could this be a motherboard issue? A bad replacement screen?

Hello, maybe it’s a loose connection? Whatever it is the repair shop had probably caused it, if it wasn’t happening before. Im not too good at diagnosing phones, but I thought I had to say something