A nice thing about the Sony Xperia XZ1 phone is it allows you to easily use Miracast to wirelessly share its screen with a larger display like the Miracast based Samsung MU6300 4K UHD TV. Most importantly, the Xperia XZ1 and the Samsung MU6300 4K UHD TV must both be linked to the same Wi-Fi network.
To start Miracast from the phone, first go to Settings -> Network & Internet and check that Wi-Fi is switched on.
Next, open Device connection from Settings to select Screen mirroring. Tap on START to automatically locate the Samsung TV which should already be turned on or in standby mode.
When you see 'Samsung 6 Series (43)' in the list, select the Samsung TV and the phone's screen will get mirrored on to the Samsung MU6300 4K UHD TV once successfully connected with the Xperia XZ1.
Fortunately, the Miracast technology works fine to remotely screen mirror your Xperia XZ1 with the Samsung MU6300 4K UHD TV easily, although you would have to bear with the occasional lag and pixelation over long hours of action movies or gameplay.