Mentality as a noun:
A mindset; a way of thinking.
"Before he can succeed, he will have to shed the mentality that he can get by without hard work."
Mindset as a noun:
A way of thinking; an attitude or opinion, especially a habitual one.
"Earth Day is a way of propagating and celebrating the environmentalist mindset."