My iPhone screen is black with a spinning wheel in the center. It comes back to life sporadically but then goes to sleep again?

My iPhone screen is black with a spinning wheel in the center. It comes back to life sporadically but then goes to sleep again?

Power it completely off, wait a little bit & turn it back on. It might start working then.

Try this solution 1. Unplug phone case its plugged in 2. Now press and hold Power and Volume Down buttons together at same time 3. Once phone shuts off connect your iphone to computer 4. Your iphone should automatically turn on and issue should be fixed