The Spanish champions had gone into the game under pressure after an underwhelming start to their La Liga campaign in which they had won just once in four games.
Mourinho, who celebrated the winner by sliding on his knees, said: "In my brains were a few computers - delete everything that was ready to be written and write again.
"It doesn't matter about my celebration, what mattered was the match and the way people who love football around the world enjoyed this match for sure.
"For me as a coach, more important than the win is to be proud of my team, whatever the result.
Watch: Late goal lifts Real over Man City... More Videos
"I kept saying as things were not going in the right direction that Real Madrid can lose matches like tonight's [Tuesday], Real Madrid can lose matches fighting like animals.
"But Real Madrid cannot lose matches like the match in Getafe or the match in Seville."