The ghusl of medium istihadha should be performed once during the day based on obligatory precaution. There is no makeup for the ghusl, but you can perform it (and wudhu) before the prayer.
If you did not perform ghusl for medium istihadha and that was your state then your prayers were void and they must be repeated. You must act according to the level of your istihadha otherwise the salat is void.