The output of the charger can be measured. Sometimes the connector gets damaged. My local repair man checks for free. A new charger Issy not too expensive. Do you know anyone with the same make our charger output you could borrow to see if it works?
Galaxy Note 8 vs iPhone X