Dryer over heats

the dryer shuts off when on high after 3 to 5 min of running it’s very hot on the top right of the dryer

Check for a clogged or restricted vent. The airflow should be as strong exiting the house as it is exiting the dryer.