Hi Cynthia,
When you play a Free game on Windows 10, those games are mostly ad-sponsored. If you want to play Microsoft Solitaire or any free games on your PC, you may upgrade the game to a Premium version by clicking on the Upgrade to Premium button in the game Menu.
If you are already subscribed to the Premium membership and you are still seeing the ads, you may turn off the Ads on the Privacy dashboard online by signing in to your account on this link.
If you need further assistance, you can reply to this post anytime.
If you think this was helpful, do not hesitate to "mark it as answer" to help those who are facing the same problem.