Solidly mounted resonator is a type of film bulk acoustic resonator for microwave operation applications. ZnO piezoelectric films provide a choice to produce solidly mounted resonator, but show a low longitudinal acoustic velocity and a relatively low response. In this work, a ternary compound magnesium doped zinc oxide (MgxZn1-xO) piezoelectric film is introduced and investigated, which has a flexible frequency response and a higher acoustic velocity. X-ray diffraction (XRD) θ-2θ coupled scans of the MgxZn1-xO films are investigated versus different RF magnetron sputtering deposition conditions. Residual stresses are studied to ensure a reliable fabrication of solidly mounted resonators. A typical device fabricated based on MgxZn1-xO piezoelectric film show a resonant frequency at 2.046 GHz with a return loss of −38.9 dB, a quality factor of 965 and a coupling coefficient of 2.5%. The calculated longitudinal acoustic velocity of a MgxZn1-xO film is 6854.1 m/s, faster than that of ZnO.