After 3 years it's totally normal for the battery to start degrading - they're just not made to last forever. Before you head to the Apple Store, you can check a few things yourself. Take a look at your energy-saving settings to see if anything weird is configured there. Some apps run in the background and drain a lot of power - you can see which ones under "Battery" and then disable them if needed. Also, having your screen brighter than necessary uses a ton of energy.
If you've checked everything and nothing helps, then you'll need to go to the Apple Store or a certified service center. With a device that's 3 years old, Apple will probably suggest a battery replacement, but that's not free - it used to cost around 100 or so, but I have no idea what the current prices are. Sometimes the device is still under warranty or AppleCare+, then it'd be free, but that's pretty rare with devices this old. Just call them or book an appointment online - they can check it quickly.