How to match my Monitor Resolution to my game resolution when the game enters

Hello! I want to know how to set/match my monitor resolution to my game resolution, whenever players closes the game and reenter so that it will be set to monitor resolution. I have made a functionality for saving changes like different option resolutions but I don’t know how to actually match the monitor resolution to my game resolution whenever player reenters the game like I said. Please someone help me!