Testing lepton universality in penguin decays of beauty mesons using the LHCb detector