Flags were generally used as rallying features for the duration of battles; soldiers could bring together around their hues for morale
https://griffinxggr953.juniperbrief.com/posts/a-closer-look-on-the-most-iconic-civil-war-flags-of-the-era
Flags have been regularly used as rallying issues during battles; soldiers might assemble round their colorings for morale beef up whilst faced with overwhelming odds.