Probing Early Modification of Gravity with Planck, ACT and SPT