On macOS versions including macOS 27 Golden Gate, you can freely position items on your Desktop and/or keep them stacked, arranged or sorted, depending on your settings.
If your Desktop icons are in fixed positions and you cannot move them freely, then in Finder with no windows open, select View menu and ensure that Use Stacks is NOT checked, and Sort By is set to None or Snap to Grid:

The other options (Name, Kind, etc.) will automatically sort them.
You can access the same settings with View menu > Show View Options, and make the same changes (Stack By: None, Sort By: None or Snap to Grid).

Note that Snap to Grid allows nearly free placement but snaps randomly positioned items to the nearest grid space.
More info from Apple:
Ways to organize files on your Mac desktop - Apple Support
Align and resize items in icon view on Mac - Apple Support
If none of the above help, then see if the problem is present when you boot in safe mode. That process performs some system cleanup and clears caches, and also disables 3rd party extensions that may cause problems.
Start up your Mac in safe mode - Apple Support
If that does not correct the issue, test in a new user account. A newly-created user account will have all settings at default, and if the issue does not occur in that new account then it provides guidance on what may need to be changed to correct the issue.
Add a user or group on Mac - Apple Support
Once the testing is complete, the new account can easily be deleted.
Delete a user or group on Mac – Apple Support
Those steps will help to isolate the problem.