For a remote wireless camera, H.264 is often superior to H.265. Why? You are likely viewing the stream on a phone with variable cellular signal. H.265's complex decoding takes longer; if your 4G signal drops for one second, H.265 struggles to recover. H.264 recovers instantly. Unless you are archiving 24/7 footage in a data center, stick with H.264.
Not all H.264 implementations are equal. Look for these five specs before clicking "buy." h.264 remote wireless camera