I had the same problem with Envy15 ee0000 AMD 4700U since I got it 5 days ago.
The fix for mouse lag, intermittent freeze, UI random freeze, and the like on google didn't work.
Many recommend reinstalling Windows and I was ready to take it as the last resort.
Then, I noticed that the graphic driver preinstalled is the old one from last year. So I went to AMD page and got the "Auto-Detect and Install". Ran it and installed the latest Adrenalin 21.4.1 with the "factory reset" option.
Restarted the Windows, the UI freeze problem was still there. "AMD Radeon software" opened normally.
Restarted the Windows again, "AMD Radeon software" didn't open with an error message of driver version mismatch.
I double-checked the driver version of the "Display adapters" in the Device Manager, surprisingly it was still the old one.
So I ran the AMD installer again without the "factory reset" option.
Restarted the computer, checked the driver version - correct, "AMD Radeon software" opened normally again.
The UI freeze problem has gone away for 48 hours.