UVC light attacks the RNA directly. The photons easily penetrate the outer shell of the virus and hit the RNA strand. There they cause dimer formation between neighboring bases on the strand. These dimers prevent the RNA from being read and thus inactivating the virus because it can no longer replicate.
For UV light it is therefore not important whether the owner of the RNA is called Beta, Delta or Omicron, since all of them have genetic information.