Use this guide to check the health of your battery and whether your iPhone is operating at peak performance. If not, it may be time to replace the battery.
This guide was created on an iPhone X, but can be used on any iPhone 6 or newer, running iOS 11.3 or higher.