linguistic:translation, stylistic:tone
19th-century restoration

Following the building's conversion into a mosque in 1453, many of its mosaics were covered with plaster, due to Islam's ban on representational imagery. This process was not completed at once, and reports exist from the 17th century in which travellers note that they could still see Christian images in the former church. In 1847–1849, the building was restored by two Swiss-Italian Fossati brothers, Gaspare and Giuseppe, and Sultan Abdulmejid I allowed them to also document any mosaics they might discover during this process, which were later archived in Swiss libraries. This work did not include repairing the mosaics, and after recording the details about an image, the Fossatis painted it over again. The Fossatis restored the mosaics of the two hexapteryga (singular Greek: ἑξαπτέρυγον, pr. hexapterygon, six-winged angel; it is uncertain whether they are seraphim or cherubim) located on the two east pendentives, and covered their faces again before the end of the restoration. The other two mosaics, placed on the west pendentives, are copies in paint created by the Fossatis since they could find no surviving remains of them. As in this case, the architects reproduced in paint damaged decorative mosaic patterns, sometimes redesigning them in the process. The Fossati records are the primary sources about a number of mosaic images now believed to have been completely or partially destroyed in the 1894 Istanbul earthquake. These include a mosaic over a now-unidentified Door of the Poor, a large image of a jewel-encrusted cross, and many images of angels, saints, patriarchs, and church fathers. Most of the missing images were located in the building's two tympana.

One mosaic they documented is Christ Pantocrator in a circle, which would indicate it to be a ceiling mosaic, possibly even of the main dome, which was later covered and painted over with Islamic calligraphy that expounds God as the light of the universe. The Fossatis' drawings of the Hagia Sophia mosaics are today kept in the Archive of the Canton of Ticino.