Hi,
Thank you for posting your query.
Kindly follow the steps provided below to resolve your issue.
There are a variety of capture settings you can change on your Windows 10/11 device so your video, audio, and screenshots are just the way you want them for gaming.
Go to this link for your reference and other troubleshooting procedures https://support.xbox.com/en-us/help/games-apps/game-setup-and-play/adjust-capture-settings-windows-10
Do not hesitate to message us if you need further assistance.
If the answer is helpful kindly click "Accept as Answer" and up vote it.