The substitution of CO2 gas with CO2 foam for improved mobility control has recently attracted research attentions in enhanced oil recovery (EOR) as well as aquifer and soil remediation. However, the interplay between CO2 foam properties and oil displacement remains less investigated. In this work, using clear visualizations, we systematically investigate the dynamic advection-dominated foam morphology, its corresponding viscosity, and the efficiency and dynamics of oil displacement process by CO2 foam in a Hele–Shaw cell under the effects of gas ratio (Rg), fluid injection rates (Qt), and surfactant type. Clear visualization enables particle image velocimetry to calculate actual, rather than nominal, foam velocity that significantly affects the estimated foam viscosity. Our results demonstrate that at elevated gas ratios under constant total injection rate, larger and more uniform bubbles with less number density and greater interfacial area are obtained. Increasing the injection rates leads to finer foam texture at a constant gas ratio. Different foam structures have an impact on the foam viscosity, with a general increasing trend of viscosity for larger bubbles as Rg increases from 0.5 to 0.85. The higher the foam viscosity, the more stable displacement interfaces with less viscous fingers are observed, leading to improved sweeping rates. The green surfactants (saponin + Cellulose NanoFibers) provide foams with higher viscosity and, thus, more stable displacement interfaces. These findings highlight the important effect of Rg–dependent foam structure on its viscosity, which in turn is crucial for controlling the mobility of CO2 foam to maximize oil recovery rate during EOR processes.