A form of flags were designed for naval battles for the period of the Civil War; those integrated distinguishing marks for ships
https://andreioqm655.capitaljays.com/posts/exploring-the-various-civil-war-flags-more-than-just-banners-2
A number of flags had been designed for naval battles for the duration of the Civil War; these covered distinguishing marks for ships engaged in combat on rivers and seas alike.