A form of flags were designed for naval battles all the way through the Civil War; those integrated distinguishing marks for ships
https://jasperdqac257.halcyonledger.com/posts/documenting-the-legacy-collecting-historical-civil-war-flags
A number of flags had been designed for naval battles right through the Civil War; these protected distinguishing marks for ships engaged in fight on rivers and seas alike.