Please don't think i'm stupid or something but do fish see their own reflections in the glass or do they see u

see sometimes they just float there by the glass like they are seeing and maybe even studying themselves like they truly see a reflection BUT then you can walk by and they swim away like they’re scared sooo i really can’t figure out if they see outside ,see a reflection or if its both