Tony is first shown as a immature, genius playboy not taking anything seriously. It's not until he's tortured, nearly killed, and sees his own inventions being used to kill innocent people, that he becomes Iron man.

And thoughout the films. Tony uses his humour to hide his insecurities and PTSD..

kwa the time of Civil War, Tony is broken man..

Basically the same.. Seems to use his famish his humour to cover his insecurities and PTSD.. In the film he believes his girlfriend only loved him for his looks, and thinks she won't upendo him now that he's ugly.. And I saw one comic where Deadpool saw the X-Men kill a child. And he was very upset about this. Not playing it for laughs..

Espically the movie Logan.. But your have to see it. Don't wanna spoiler it..