Can I transfer unused h1b visa period to different domain, like from mechanical to IT

Hello everyone,
I did my MS in Mechanical Engg. in US and worked for auto industry on h1b. I was laid off and came back to India in Feb 2020. I only used 15 months of my h1b visa. Now I’m planning to do Master in IT. Since this will be my second master, I’m not eligible for OPT. So can I use the same h1b visa I had and transfer to new employer after my master in IT. Please someone let me know.

Your new employer may be able to file H1B under cap-exempt based on the fact that you were beneficiary of approved H1B in past. I don’t think change in domain will create any issue as far as the new job position is inline with your new masters degree.