Ford Explorer overheated and transmission

So I had a Ford Explorer that overheated and I checked most of the parts to see if they were working properly but noticed bubbles in the oil dipstick. The vehicle also had a transmission fluid cooling line pop out of the radiator. Would the problem be a head gasket that caused it to overheat and would it also cause the line to pop off the radiator?

A leaky head gasket will cause your engine to start burning oil and coolant.

A transmission that is running hot can cause the engine to overheat and also cause a transmission cooling line to blow off.

Pull the transmission dipstick out and smell the fluid and note its color.

If the fluid smells burnt and looks burnt, the transmission may be the cause of the overheating.