I say, and with God's success: Prayer on top of the Kaaba is valid, although it is disliked due to the neglect of honoring the Kaaba, and God knows best.
Relevant Fatwas
Send your question to the smart assistant
If the previous answers are not appropriate, please send your question to the Mufti via