The Sony Bravia 4K Ultra HD Smart LED TV with Android has problems with Miracast working with several popular phones like the Samsung Galaxy S6 Edge and the Micromax Canvas Knight 2. As one would expect, Miracast works great with Sony's own Xperia Z4.
Miracast setup can be found Xperia Z4's Settings Menu->Xperia Connectivity->Screen mirroring->One touch setup->Screen mirroring. This is probably a few more steps then is needed but you can also access screen casting in the swipe down from top menu quick settings access menu.
Screen mirroring images looks great as you can see from the images below.