Resolution and Scaling Docked vs Undocked?

Are there any secrets to this issue? For example, when you are undocked, using a Surface screen, the resolution is so high that you need scaling in windows to 200% recommended. Also, Edge and IE need about that percent well.

Then lets say you want to re-dock with your monitors that have lower resolution than your surface screen (1080p). Now that scaling is still set at the 200% you left it at on windows settings and edge settings.

Is there is fix, or trick to this issue yet? I remember back in the day, with old OSs, you had a docked profile and non docked profile, where you could set some settings to change automatically. Obviously thats not around anymore, I think.

Wonder if there is at least a way to script the 2 settings changes, so it would be just a click of a button if thats what it came down to be?
What your alls take on this?