you need to check 1 or 2 things, try replacing the battery to see if that is the case, or it could be your charging port.
+
you need to check 1 or 2 things, try replacing the battery to see if that is the case, or it could be your charging port. worst case scenario it is the motherboard