As you have been told, it is most likely the USB-C port. Even if your phone hasn’t been around dust or moisture, it may have been getting it with normal use. Here’s an easy guide on how to clean it:
It could also be that your USB-C port is broken. You can either buy a new one
or see if there is a fairphoneangel near you to see if they can give you a hand or try it out a differente one.
The last option I can think of is what you have been told: try changing the cable and/or the wall plug. Sometimes that can be the problem.
Muy own experience: I’ve had that problem a few years ago on my FP3 a couple of times, and once I solved it by changing the USB-C cable I was using, and the other time by opening the phone and cleaning the port and connections with isopropyl alcohol:
Good luck ![]()