LEDs require a series resistance to limit the forward current when fed from a 5VDC stabilised supply. The value of the resistor is determined by working out the voltage to be dropped, which is the difference between the supply voltage and the LED's junction voltage, and dividing it by the maximum forward current. That gives a minimum resistance. As it is not good practice to run an LED at ist maximum forward current, one then increases the value of the resistance to allow for a safety factor, be it 25%, 50% or whatever.
A suitable isolator might be a simple on/off toggle switch in the 5V circuit feeding the LED, perhaps?
__________________
"Did you get my e-mail?" - "The biggest problem in communication is the illusion that it has taken place" - George Bernard Shaw, 1856