The internalized attitudes, expectations, and viewpoints of society is called generalized other.
In sociology, generalized other is described as an individual's internatilized impression and expectation of other people in society. The term derives from George Herbert Mead's "The I and the Me" theory.