Standard Logitech USB microphones (Blue Yeti, Snowball, G Pro, etc.) do not work directly on Xbox One/Series X|S.
Buy a wireless Xbox-licensed headset. If you need studio mic quality for streaming, use the USB mic on PC + capture card for console gameplay, mix in OBS.