Wireless charging working, but port charging not
My iPhone shows that it is charging when plugged in (cleaned port and swapped outlets and cables, restarted), but it does not gain charge. It does, however, gain charge when on a wireless charger. Is this a hardware problem with the iPhone and how to go about fixing it?
iPhone 12, iOS 15