Why is the ratio of gas density equal to the ratio of molar mass at the same temperature and pressure?

Why is the ratio of gas density equal to the ratio of molar mass at the same temperature and pressure?

According to the gas equation of ideal state, PV = NRT, where p is the pressure of ideal gas, V is the volume of ideal gas, n is the amount of gas substance in ideal gas, R is the constant of ideal gas and universal gas, t is the absolute temperature of ideal gas, because n = m / m, density = m / V, then v = m / density, when t p is the same