Just downloaded the latest S10 5G (UI2 I think) update and it's stopped my phone from Screen Sharing to other devices completely. I'm able to search for devices but everything I connect to states that my phone has "disconnected". My phone, while attempting to connect, does nothing. Usually, it will state that it's connecting but it doesn't do anything now. It's garbage!
Sometimes after an update and the phone is misbehaving and there are no updates in the Playstore or Galaxy Store then the following tips may help @BlueBirdFlyAway
1, Settings, Apps, Choose the app, Location and then clear the cache and then data if necessary.
2. Turn the phone Off and then from a set series of button presses go into the phone's system files and clear the system cache files. No information is lost this way.
3. Back up and remove any relevant sd card and factory reset.
Current Phone > Samsung Z Fold³ 5G.