Mine did this a couple years ago and again today. It wouldn’t even power off. I held the power button in and at the same time press and hold the Home button for at least 10 seconds. The screen went black and the Apple appeared and I let go. It is working just fine again.