Performing tawaf on the upper floors and rooftop of Masjidil Haram is valid according to the majority of contemporary scholars. Sheikh Ibn Baz ruled that tawaf on any level of the masjid is valid as long as the jamaah haji is circumambulating around the Kabah, even if they are at a higher elevation than the Kabah itself. He noted that the Kabah extends upward conceptually — the airspace above the Kabah is also considered part of its sacred area — and therefore tawaf at a higher level remains around the Kabah.
Sheikh Ibn Uthaymeen held a slightly more nuanced view: he considered tawaf on the upper floors valid when the ground floor is too crowded, but he noted that being closer to the Kabah is more virtuous (afdal) and that the ground level is preferable when accessible. He stated that tawaf on the upper floors satisfies the requirement of circumambulating the Kabah and is especially appropriate for the elderly, those in wheelchairs, and during extremely crowded times.
The Permanent Committee confirmed the validity of tawaf on all levels of Masjidil Haram, noting that the expansion of the masjid and the addition of multiple floors were specifically designed to accommodate the growing number of jamaah haji. The key condition that scholars stipulate is that the jamaah haji must be circling around the Kabah — if the upper floor extends beyond the Kabah's vertical projection, some scholars debated whether the outermost path is valid, but the prevailing contemporary view is that it remains valid as the jamaah haji is still circumambulating the Sacred House.