How did the mosque assume its standard modern shape (a square building with a round minaret on all four corners and a dome in the centre of the roof)?

by Timely_Jury

From what I know, Islam imposes no specific architectural requirements for mosques. Also, the earliest mosques seem to have been simple mudbrick constructions. How did the elaborately decorated design with domes, arches and minarets appear?

Holy_Shit_HeckHounds