Hydrogen (H2) offers a promising solution for the energy transition but storing it on a large scale at the surface poses significant technical and environmental challenges. Underground formations provide a practical alternative for large-scale H2 storage, yet understanding H2 behavior under various subsurface conditions is crucial for optimizing storage capacity and efficiency, which are influenced by rock properties such as wettability. This study addresses the gap in literature regarding the wettability of different minerals when CO2 was injected with H2 as a cushion gas. We examined the wettability of various mineral rocks in realistic subsurface circumstances. A series of wettability measurements were carried out using a captive drop instrument under high-pressure and high-temperature conditions, employing seven different minerals.Our findings reveal that mixed gas contact angles are significantly affected by temperature and pressure, with CO2 playing a crucial role in minimizing hydrogen trapping and enhancing CO2 capture in UHS and Carbon Capture, Utilization, and Storage (CCUS) projects. Higher CO2 mole fractions lead in increased contact angles due to the enhanced density and solubility of the gases, especially in basalt. Increasing the CO2 mole fraction from 25 % to 75 % at a constant pressure of 100 bar and temperature of 60 °C caused the contact angle of basalt with brine to rise from 54° to 86°. Pressure has a more pronounced effect on contact angle changes than temperature. For quartz rock in a 50 % H2 + 50 % CO2 mixture, the contact angle changes by 18° when the temperature increases from 20 °C to 80 °C at a constant pressure of 70 bar in distilled water. In contrast, the contact angle changes by 36° when the pressure increases from 10 bar to 100 bar at a constant temperature of 40 °C.These insights are essential for selecting suitable rock formations for underground gas storage, thereby supporting the advancement of hydrogen storage technologies. Furthermore, utilizing CO2 improves technical performance and environmental sustainability while also supporting international efforts to reduce greenhouse gas emissions. Overall, our results offer insightful information about the planning and operation of underground hydrogen storage systems, emphasizing the potential of CO2 to increase storage effectiveness and support carbon sequestration initiatives.