Emulsions are widely used in various sectors of the oil industry. They can spontaneously be formed during drilling, production, transportation, and oil separation processes. The stability of these emulsions is closely related to species such as asphaltene and resin at the water/oil interface. In this study, emulsion stability was studied at static and dynamic conditions where w/o emulsions were prepared using different concentrations of MgSO4 and Na2CO3 solutions. The optimum concentration of MgSO4 and Na2CO3 solutions was then obtained by microscopic imaging of the samples and analyzing through the ImageJ software. Once the optimum concentrations was established, the stability of emulsions were examined in a 10‐day time period. Emulsion stability at dynamic condition was also examined through injecting the optimum aqueous solutions into a micromodel. Based on these findings, 50 000 ppm and 60 000 ppm were identified as optimum concentrations for the formation of stable w/o emulsions for MgSO4 and Na2O3, respectively. Asphaltene also showed distinct behaviour with pH in which higher polarization was observed for basic solutions. According to this finding, more stable emulsions have been observed in the optimum solution of MgSO4 (in comparison with the Na2O3 solution) under static and dynamic conditions.