To dream that you are in a mental institution indicates a need for rest and a need to reset your mind. Don’t be afraid to ask for help/assistance when you need it.
To dream that you are outside a mental institution suggests that you are feeling ostracized or shunned. You may be close to a mental breakdown. Or you are feeling left out, excluded, and ignored.