Chosen Solution

My USB charger is loose and keeps dying when being charged

Leon Francis some are easier to fix than others. Like this one OnePlus 2 Charging Port Replacement which is straighrt forward. It will all depend on which model you are referring to.