@victorjr19666 With the age of the game, there will only be a few things you can do to change this. The game itself is compatible with Win 10 as many updates happened with the game over the years to make it compatible.
As of now, there are no more updates to the game, so you have to find different solutions beyond what there are in the game settings. You can change the compatibility mode in the install folder by right-clicking the game's icon and going into properties. With Steam, you can alter the launch commands but that is a bit out of our scope of support.
I've also searched online for this issue, and there are many threads on Steam on changing the game's resolution and options you can take. I did a search of the following "how to force plants vs zombies into wide screen"
Steam threads came right up on this search!