Hello and welcome to iMore! I'm sure that you will find the help you're looking for. When you get a chance, please take a minute to introduce yourself here!
Are you using an actual Apple cord? Another possibility is that you have Optimized Battery Charging enabled. Here is a link to Apple's Support site that explains an explanation on how that works: https://support.apple.com/en-us/HT210512