This research examined how changing the ratios of certain substances affected the strength and durability of a specific type of building material when exposed to acid and heat. This study used various combinations of zeolite, metakaolin, slag, and Portland cement as primary materials. It also used different amounts of potassium hydroxide (KOH) to make the geopolymer mortar. The concentrations of KOH used were 8 M, 12 M, 14 M, and 16 M. The cement-based material had the highest water absorption. A total of 240 tests were conducted, including 20 samples for each mix design tested at curing times of 7, 14, 21, 28, and 90 days. The results showed that the samples made with slag base material and 8 M mixing design had the highest average compressive strength at 28 and 90 days in the acidic environment test, and the zeolite and metakaolin base material samples had the highest corrosion and weight loss, possibly due to their high specific surface and aluminosilicate origin. The samples made with slag-based material had better resistance and the highest average compressive strength in the 300 °C and 500 °C thermo-mechanical tests. The lowest average compressive strength in the thermal and mechanical stress test was related to the samples made with a metakaolin base material. The tests performed on the samples made with slag base material had better compressive strength than the three other base materials in the acid and heat tests. The zeolite-based mortar lost the most weight under 30% acidic sulfuric water. The findings suggest that changes in the molar ratios of alkaline activators can significantly affect the durability properties and strength of geopolymer mortar, and the slag-based material with an 8 M mixing design had the best performance; also, SEM analysis verified this mechanism.