The Vizio M-Series 4K Ultra HD Smart TV is an inexpensive way to get into 4K TV but doesn't comes with a lot of built in functionality like being able to wirelessly display from a smartphone, tablet, or PC. The Belkin Miracast Video Adapter is an inexpensive and easy to way to add this wireless display functionality.
All you need to do is plug the Belkin Miracast Video Adapter into a HDMI port of the Vizio TV. You should see the connection screen come up on your TV.
On the Samsung Galaxy S6, Edge, Edge Plus, Note 5 just go to Quick Connect menu and select the Belkin Adapter, which takes on the name SigmaDesigns_eb3C from the Samsung TV. In no time, you should be able to see your Samsung phone's screen on the Vizio TV.
Note this Miracast Video Adapter is incorrectly reported by some retailers to support HDMI 2.0. However, if you plug the adapter into the HDMI 2.0 port of the Vizio TV, you can see the resolution on the TV is not 4K and only shows 1080p.