The two youths who displayed the Sang Saka Malaya flag on Merdeka Day eve have been detained by the police.