Hazrat Mahdi (as) will be visible to people, but Allah will for long conceal the fact that he is Hazrat Mahdi (as)
Almighty Allah will draw a veil between him [Hazrat Mahdi (as)] and other people, and they will see but not recognize him.
(Qamal ud-din Vol. 2, p. 351)