Generally, no transit visa is required for Indian passport holders connecting through Mexico if you remain airside (in the international transit area) and depart within 24 hours.
However, you WILL need a transit visa (or visitor visa) if:
Critical: Rules change. Always confirm with:
If you have a valid U.S., Canada, Japan, UK, Schengen, or Pacific Alliance visa/residency, you may be exempt from Mexican visa requirements even for entry—check current INM guidelines.