They might look that way and may galaxy typers are flat.
On common perhaps most common galaxy type is “dwarf spheroidal galaxies” that are sphere.
The will look quite flat if you see them but that is because you only see them from one direction.
You tell a sphere and disc apart by looking how ligh illuminte it, how it cahgnes when it moves. But if you buld a sphere or disk with lightsources like a galaxy you can exacty tell them apart.
https://physics.stackexchange.com/questions/148418/why-arent-there-spherical-galaxies/148533
Latest Answers