To dream that you are in a mental institution, indicates a need for you to rest and reset your mind. You need to not be afraid to ask for help and support when you need it.
To dream that you are outside a mental institution, suggests that you are feeling shunned, excluded or ignored by others.
[1]