洋相 originally meant 'foreign appearance.' In the late Qing dynasty, people who clumsily imitated Western customs were mocked as 出洋相, and the phrase evolved to mean any embarrassing blunder.
grammar
Often used with 出 separated from 洋相 by a modifier: 出了个洋相, 出了大洋相.