Google Camera app does not work officially on the Samsung Galaxy M02s but there is a modified version available that gets the job done. Google Camera offers HDR+ and night mode and also improves picture quality on low and mid end phones like M02s.

While Google Camera was only made to work on Pixel phones but some amazing developers at xdaforums have been able to make it work on a lot more phones like Samsung Galaxy M02s.
Keep in mind that flashing Gcam will void the warranty. Also, you will need root on your Samsung M02s and have Magisk installed as well.
For that follow these steps.
1) Install ODIN on windows and download magisk.
2) Extract the Auto-Patch zip file after download it
3) Add AP,CP,CSC,BL in ODIN
4) Unlock the bootloader of phone (M02s Phone will reset)
5) Then, go to the download mode (A message will show added in ODIN)
6) Then, Click Start on ODIN
7) After complete, ‘Pass’ will appear in ODIN
8) After a few seconds, unplug the USB cable and during every restart, a warning message will appear, just click on the power button to continue it
9) After setuping the phone, you have to install magisk apk