In Osaka, the building will be lit up according to the danger level of the infection.
「感染の危険度」を"the danger level of infection"と訳しました。
「応じて」は"according to"になっています。
Sentence in context:
"If the building is lit up red, it means that the infection danger level is high. If it's green, then it means that the risk of infection is low."