If I make a mistake or forget to do something while praying in congregation, what should I do in each case as the imam already moved forward E.g.1 . Pillar - realize my feet were dangling in Sujood Example 2 mandatory - said “Subḥāna Rabbīya Al-Aʿlā instead of Subḥāna Rabbīya Al-ʿAẓīm

Ustadh AbdulAziz al-Haqqan
You can follow the imam in sha'a Allah there is nothing on u