Hi
Depending on the nature of the issue, your iPhone may require battery service.
Before contacting Apple, try the following steps:
If you have not yet done so, update your iPhone to the latest software version:
Close all apps on your iPhone and restart it (normally):
Follow Apple's tips for maximising battery life, as detailed here:
When charging your iPhone, follow the instructions in the following support article, including:
Check whether the issue persists after restoring your iPhone to factory settings:
- Back up your iPhone (you may wish to encrypt the backup, if using iTunes):
- Restore it to factory settings, with a fresh copy of iOS:
- Check whether the issue recurs before or after restoring from backup:
If the issue persists, I suggest that you contact Apple Support (mail-in service may be available), make a Genius Bar reservation or visit an Apple Authorised Service Provider for assistance, including - if recommended - to arrange for your iPhone to be checked and serviced: