Peace be upon you. You must repeat the prayers you performed during those days after performing a valid ghusl. According to Ayatollah Khamenei, if the barrier was on the left side of the body, it suffices to wash that part only with the intention of ghusl after removing it. However, if it was on the right side, after removing it and washing that part with the intention of ghusl, it is obligatory to wash the entire left side again with the intention of ghusl as a precaution. According to Ayatollah Sistani, you must make up all the prayers you performed with an invalid ghusl. If the barrier was on the head or neck, it is obligatory to wash that area and then wash the body afterward. If the barrier was on the body, you only need to wash that specific area.