Why is my battery percentage loading?
The percentage of my battery is shown then it goes away and is replaced with the spinning loading icon for about 30 seconds or so then returns to showing the percentage again?
It means that something is loading using Cellular data or WiFi.
You can try off/on the percentage, if this is the problem.
Show the battery percentage on your iPhone or iPad - Apple Support
Why is my battery percentage loading?