Welcome to Just Answer. My name is XXXXX XXXXX I will be glad to assist you.
Do you have a 4 cyl or V6 engine?
Thanks for the accept.
Here is what I do. Remove the best and unbolt the PS pump. Place a jack and block if wood under the oil pan. Remove the engine mount bolts from the right front fender. Jack the engine up slightly to access the thermostat. Remove the two hoses from the thermostat housing. Using a 8mm socket and extension, remove the 3 thermostat bolts. Remove the housing and reinstall the new thermostat/housing assembly. Mazda has a updated thermostat for this vehicle the I suggest using. Don't try using aftermarket crap.
Please let me know if you have any additional questions by hitting the reply button.
As long as you have a jack supporting the engine weight, it will not matter which bolts you remove. You are going to be jacking the engine up so the mount does not need to be removed, just unbolted from the body.