Meaning of “go out of your way to do sth” - Learner’s Dictionary

go out of your way to do sth

to try very hard to do something pleasant for someone:

He went out of his way to make us feel welcome.

(Definition of “go out of your way to do sth” from the Cambridge Learner’s Dictionary © Cambridge University Press)