This is because while iCloud syncs the data, the relevant Mac folder icons become missing or hidden. Many users have noticed that when the iCloud sync option is enabled on their Mac, it leads to the temporary unavailability of certain folders on the desktop. Don't worry – we have an easy solution for both of these issues. There would be a problem with system settings, or you might have accidentally deleted something as well. When it comes to everything disappearing from the desktop, the first problem must be the missing folders or hidden Mac folder icons. Problem 1: Folders Disappeared From Desktop Mac
The chances are that you might have disabled the dock or taskbar.You could have accidentally deleted a file or icon from the desktop.