Mac: Right-click the shortcut > Get Info. Drag your new PNG image directly onto the small icon in the top-left corner of the Info window.
Resize your browser window so you can see a portion of your desktop. Look at the address bar (where the URL is). how to get gmail icon on desktop