It's a requirement that the mosque be removed before the Temple can be rebuilt.
I believe God Himself will destroy the Dome of the Rock and remove all elements of Mohammad's faulty religion maybe by an earthquake. The way things are lining up I believe it will be sooner rather than later.