Changing mouse icon even when hovering over UI

I have a question

https://developer.roblox.com/en-us/api-reference/property/Mouse/Icon

“Note, this property is overridden when the mouse is hovering over a GuiButton .”

how to change the icon for the UI hovering mouse?

is there any other way than detecting UI and just changing the mouse icon every time?

For security reasons, the Icon is overriden and cannot be changed.

You could possibly create your own mouse Icon and move it to the mouse’s Position (returned by UserInputService::GetMousePosition) however it won’t be drawn over the default mouse icon.