Building shrines over graves

this is alright about the actual grave and this is what I have been told since I was a child. In terms of building a mosque around it or nearby I dont see a challenge?