Your Desktop window (the main screen) should appear the same whether the Desktop and Documents option of iCloud Drive is on or off. When you turn that option on, the Desktop folder (which contains the files that appear on your Desktop window) are moved from your Home folder in Finder (which is named after your username) to the iCloud Drive folder in Finder.
If you don't want it to be synced with iCloud, you need to turn off the Desktop and Documents option of iCloud Drive. Note that affects both the Desktop and the Documents folders. There is no option to do just one of those.
If you want to turn off the Desktop and Documents option of iCloud Drive, see the following from Add your Desktop and Documents files to iCloud Drive - Apple Support
Turn off Desktop and Documents
- From your Mac, choose Apple menu > System Settings. In macOS Monterey or earlier, choose Apple menu > System Preferences.
- Click Apple ID, then click iCloud.
- Under Apps Using iCloud, click iCloud Drive.
- Turn off Desktop & Documents Folders.
- Click Done.
What happens when you turn off Desktop and Documents
When you turn off Desktop & Documents Folders, your files stay in iCloud Drive and a new Desktop and Documents folder is created on your Mac in the home folder. You can move files from iCloud Drive to your Mac as you need them, or select all of your files and drag them to the place you want to keep them.
Or if you want to completely turn off iCloud Drive, see the following from that same support document:
What happens when you turn off iCloud Drive or sign out of iCloud
If you turn off iCloud Drive or sign out of iCloud, a new Desktop and Documents folder is created in your home folder. You also have the option to keep a local copy of your files that are in iCloud Drive. If you keep a local copy of your files in iCloud Drive, they're copied to a folder called iCloud Drive (Archive) in your home folder. You can move any files that were in your iCloud Desktop and Documents to your new local Desktop and Documents.