Well, it could be a few things. But in the end, it is going to need work. Battery replaced, or motherboard replaced, etc. It wouldn't be something you could fix with software or an app.
If the device is under warranty, I would contact the manufacturer about a repair or replacement.