Compatibility summary
You will need a travel adapter in San Marino; plug types used there differ from Mexico. Voltage differs by more than 20% — a voltage converter may be needed for some appliances.
Plug comparison
Mexico plug types: A B
San Marino plug types: C F L
There is no common plug type between Mexico (A B) and San Marino (C F L). You need a travel adapter.
Voltage comparison
Mexico: 127V, 60Hz
San Marino: 230V, 50Hz
Voltage converter recommended (Mexico 127V vs San Marino 230V).