VR Compatibility: Moto G6 vs E5 Play
Neither device is supported by Samsung Gear VR or Google Daydream

One of the requirements for Daydream certification is to have motion to photon latency of 22ms-25ms.

Curiously the Motorola Moto G6 is supported by Google ARCore which is expected to have sensors be calibrated in a similar fashion to Daydream

For everything else there is 
Google Cardboard which takes advantage of accelerometer/gyroscope on phone. As the sensor measurements/screen latency aren't strictly calibrated the experiences are more static and for brief sessions to avoid motion sickness.