My phone was shutting itself off even when it showed higher than a 50% charge. This prompted me to use a battery-monitoring app and discover the battery capacity was less than a third of its original capacity. These two factors combined convinced me the battery needed replacing.
I followed the steps . . .