If you mean Win-G, then clicking screen record, it shows an overlay which clearly indicates that the screen is being recorded. I don't think that you can hide that overlay.
There are many screen recorders that do not show a "giant banner", and even if there weren't, it's ~200 LoC to implement an efficient screen recorder for Windows that's hidden.