MohammadWaqaarAhamad depends on many factor, if it’s a new device, a new cable (Apple™ Type-C Cable which does not wobble), or the collection of dust and pocket lint in the charging port.
I would recommend to inspect the charging port under a flashlight and remove any dust with extreme care and use the thinnest pin you find at shops!