Phone powers off with full battery. It only seems to work when it's plugged in
Phone shuts down with full battery
Ask a QuestionTime for a visit to Apple shop I would think, though you could try a hard reset first, that often clears anomalies.
What phone model?
Original thread: https://forums.imore.com/threads/phone-shuts-down-with-full-battery.379790/