Any way to fix an unstable charging port
Although it's not recommended, I use a metal pin to scrape along the bottom and up the sides of the charging port . Just need to keep clear of the usbc port . It can take a bit of effort to get out the compacted dirt and lint but after you do, it will fix the loose cable and charging issues. Just remember to turn the phone off first.
If everything looks good, try plugging in the charger and see if it works better. If not or you find issues with the pins, then the only solution is to replace the port . You're fortunate in that on your phone the charging port is mounted on an easily-replaceable flex cable rather than on the motherboard like a lot of phones.

Such details provide a deeper understanding and appreciation for Oneplus Charging Port Not Grounding.
OnePlus Charging Port Replacement Guide
In early spring, I purchased a generic "Universal OnePlus Charge Module" thinking it would fit any recent flagshipbut upon arrival, the mounting holes didn't align, and the flat-flex interface lacked proper grounding tabs found on later revisions.

Moving forward, it's essential to keep these visual contexts in mind when discussing Oneplus Charging Port Not Grounding.
OnePlus Phone Not Charging Properly Here's 13 Effective Solutions ...
Get a OnePlus Repair For hardware damage like a faulty charging port , motherboard issues or damaged battery, take your OnePlus to an authorized service center for inspection and repair.
The OnePlus 12 supports 50W AIRVOOC wireless charging (with the official dock) and standard Qi wireless charging . If your phone charges perfectly on a wireless pad but refuses to charge via the USB-C cable, you've strong evidence that the physical port is the issue.