In Bangladesh, popular support led the government to throw away the secularism enshrined in the country's original constitution and declare Islam the state religion.
Even in "modern times" democracy and liberalism are not necessarily (or even often) co-extensive.
It has to be a core tenant that the population believes in.