Mazda Repair Questions? Ask Mechanics for Answers ASAP
This could be incorrect fuelling due to a faulty water temp sensor. If this is the problem then the ECU will be leaving the car constantly ' on choke' and not reducing the fuelling as the engine warms - so unplug the sensor and clean the contacts on both sides with some switch / electrical cleaner (not WD40) and inspect the wiring for any signs of damage to the insulation especially where it runs over other components and through the bulkhead- if this doesn't help consider replacing the sensor as they're not expensive
Also check for exhaust leaks before the O2 sensor as if this has been experiencing an exhaust leak then it will have been running very rich as the sensor will see the extra air pulled in as fresh / lean fuelling and be adding fuel to compensate.
this can lead to catalyst failure as the extra fuel can re-light inside and melt the catalyst
The best way to find an exhaust leak is to run the engine from cold and feel around the exhaust joints with your bare hands - you'll have about 30 seconds before it all gets too hot and you should feel any escaping gas blowing over your fingers
do you still need help?
Bear in mind that the site takes a deposit from you at the beginning and this is held by the site until you rate my answer at which point the cash is split between the site and the expert. I am only paid for my work on this question if you rate my answer, using the star system at the top of the screen. Please do not forget! Thank you