The mosque is at the centre of a contentious legal battle over claims that it was built on the site of a Hindu temple.