Strontium titanate (STO) and its variants have emerged as leading materials in photocatalysis, particularly for degrading nitrogen oxides (NOx), due to their non-toxic nature, structural adaptability, and exceptional thermal stability. Although the one-pot sol-gel method leads to high-quality photocatalysts, areas remain for improvement. This study examines the impact of ethanol as a cosolvent in STO synthesis, focusing on optimizing the water-to-ethanol volume ratio. The findings reveal that a 1:3 ratio significantly enhances macropore formation and photocatalytic efficiency, achieving 42% NOx degradation under LED within three hours. Furthermore, incorporating 8.0 wt.% Ag into STO substantially improves visible light absorption and enables complete NOx elimination, thanks to enhanced charge separation and localized surface plasmon resonance. Even at high temperatures (1100 °C), the Ag-STO photocatalyst maintains partial activity, despite exceeding silver's melting point. These results highlight the potential of STO-based materials for industrial applications, positioning them as a promising solution for effective NOx mitigation.