Put hardened nail polish bottle in bowl of lukewarm water for 10 mins.
Get a top coat or clear coat nail polish. It should be clear so that it won't affect the colour of the nail polish.
Pour a little top coat into the hardened polish. This will help to break it up.
Put on the cap and shake well. Have a look and see if it's worked. If it has, you're all set.