Why is my Samsung J7 charging state declining?

Highlighted

Why is my Samsung J7 charging state declining?

My Samsung J7 charging state is declining although it is plugged into the charger and it shows the sign of charging but the battery percentage is declining. Why is this happen, how can it be fixed ?