Macbook Pro is heating up when I'm connecting it to an external monitor

Which MBP is it and what monitor and resolution is it @siddhant3030? Also what is your scaling set to - non-default scaling can lead to a Mac running hotter.

Go to System Prefs > Displays > Resolution and click on ‘scaled’ to see what it is set at.