A menstruating woman is required to delay Tawaf al-Ifadah (also called Tawaf al-Ziyarah) until her menstruation ends and she has performed mandi wajib. This is because purity is a condition for the validity of Tawaf menurut jumhur ulama. There is no fixed deadline for performing Tawaf al-Ifadah — it can be performed at any time after the standing at Arafah, even if delayed by days or weeks.
Sheikh Ibn Baz explained that when a woman menstruates before performing Tawaf al-Ifadah, she completes all other rites of Haji — stoning, sacrifice, cutting hair — and remains in a state of partial ihram. In this state, everything becomes boleh for her except marital relations with her husband. This partial ihram continues until she becomes pure, performs mandi wajib, and completes Tawaf al-Ifadah. Once she performs the Tawaf, full tahallul (exit from ihram) is complete.
Sheikh Ibn Uthaymeen stated that the woman should wait patiently in Mekkah until she is pure, if possible. If her travel group must leave, she has several options: she may stay behind with a mahram and join the group later; she may travel home and return later to perform the Tawaf; or, in cases of extreme hardship where returning is not possible, some scholars (following the position of Ibn Taymiyyah) permit her to perform Tawaf with menstruation as a last resort, wearing protection. However, the stronger position is that she must wait.