Why is my Vizio TV not connecting to my phone?

Why is my screen mirroring not working on my Vizio TV?

If your Vizio Tv is not displaying an AirPlay code it may be that this feature has not been enabled. To enable AirPlay Onscreen Code, select 'Settings' > 'AirPlay' > then be sure that 'AirPlay' is 'On', turn the 'Onscreen Code' 'On', and turn the 'Password' 'Off.