Chosen Solution

My iPhone XS Max will only charge when plugged into a Toyota Camry hybrid. It doesn’t work on any other car chargers or any outlets. Anyway, I was wondering if a repair charging port from an iPhone 6 would be compatible with in my phone.

No. The iPhone 6 charging port assembly would not fit the iPhone XS Max. They are different shapes with different connectors.

Doesn’t make sense that the phone only charges in a car…? Possibly bad charging block you are using?