Yes, Mexican nationals can apply for the visa to Turkey online here: https://turkishvisa.com/
Visa Fee = 20 USD (Service Fee)
Entries: Single Entry
Note that your stay cannot exceed 30 days.
If you are visiting Turkey for purposes other than tourism then you need to apply for a visa at your nearest local Turkish Consulate.