Chosen Solution

NOT SOFTWARE PROBLEM Which part needs replacement?

You need to get a new battery. You’re battery inside the iPhone cannot hold enough charge to keep your phone on for extended periods of time so I would get a new battery and it should fix your problem