How do I fix charging but not increasing battery percentage?

How do I fix charging but not increasing battery percentage? 

Battery percentage stuck while charging
  1. Clean the charging port of the phone.
  2. Charge the phone using the original charging cable from a wall charger.
  3. Use a different charging cable and adapter.
  4. Perform Component Check.
  5. Charge the phone from a different wall charging port.
  6. Restart the phone.
  7. Update your phone’s software.