Ensure that your computer or smartphone is running on the same wireless network as your Chromecast device. If the two are connected to different networks, the Chromecast will not be recognised and the cast button probably won’t be available.