2005 GMC Yukon - Trans issue

when the transmission gets hot it doesn’t want to move

How do you know the transmission gets hot? What do you mean by “doesn’t want to move”?

Warning lights? Check engine light on? Warning messages on the dash display?

How many miles on this? What engine? 4WD or 2?