Your T-Mobile hotspot can stay connected, but you may get no internet connection because of these probable reasons.
You are in an area with poor T-Mobile network coverage.
Your hotspot has consumed its data limit.
Your hotspot lacks proper settings.
Your device is not compatible with T-Mobile.