tl;dw: the concept has been toyed with in a number of episodes:
Imagine the death penalty was replaced by a simple "ban" from everybody else's perception. Instead of being put to death, you just appear as an outline filled with static and your voice appears as garbled noise.
Alternatively, imagine "parental controls" for a child's perception that automatically filters out "unsafe" content like sex, violence, hobos, hookers and hate speech.
Or imagine altering a soldier's perception to make enemy combatants appear less human so empathy doesn't get in the way of a clean kill.