After visiting a church where Bernadette Soubirous was baptised and the small room where her family lived in poverty , the pope went on his popemobile to the grotto where she had her " encounters " with the Madonna .