iPhone 15 Charging Problem: Why It Happens and How to Fix It

I have a new iPhone 15 and a new charger that came with it. When I plug in the charger, the phone does not charge continuously, but rather alternates between charging and not charging every 2 seconds. Is this normal or a sign of a problem? Could this damage the battery or the phone in the long run? I also tried using an Android charger and it did not have this issue, but I am concerned about compatibility. What could be the cause and the solution for this? <a href=>https://technsight.com/</a>