Your problem is with the leadership of countries, not with the EU as an institution. I agree that it is a problem btw, but I think you got the wrong culprit. This isn't pushed on the states by the EU, this is the states using the EU to push it and launder the bad publicity.
Imagine is those issues were campaign promises and part of internal(country's) elections - they aren't in reality but we can set that aside for now. as it was extremely well said by sibling post.
My country is 80% against 20% in favor(in practice it is even more skewed towards 'no' for chat control!), other EU countries are 51% for, 49% against.
Yet such 'vote' by heads of state counts whole countries in,if you were to count individual votes majority of EU citizens would be against it.
This allows you to pass undesirable or extremely contentious legislation, that would most likely prevent you from being elected in the future in your local elections but you can easily shift the blame too!
This is as far form democracy as possible, it is pure bureaucracy that serves it's own goals.
"But why can't we just leave the EU to stop this" - too late. Most EU countries have enough intra-EU migration and trade to make leaving unthinkable. The UK was a special case - and, ironically enough, actually responsible for some of the EU's worst decisions.
Furthermore, this isn't exactly an EU exclusive problem. Every supranational organization that is responsive to member states and not individual voters is a policy laundering mechanism. Ask yourself: where's your representation in the WTO, and when did you vote for them? The sum of democracy and democracy is dictatorship. Any governing body that does not respect all of its voters equally is ripe for subsumption by people who do not respect them at all.
[0] Originally, US senators were appointed by state governors. This eventually resulted in everyone voting for whatever governor promised to appoint the senator the voter wanted. Which is sort of like throwing away your gubernatorial vote for a senatorial one. This is why we amended the constitution to allow direct election of senators, and I hold that any sovereign nation that makes the mistake of appointed politicians will inevitably have to either abandon it or fail.
A unitary state would solve that problem by allowing us to have simple, Union-wide elections instead.
They then in effect elect a Prime Minister, who appoints an executive, who create laws and then put them to parliament
In the US you can vote for the leader of the executive directly. 64% of Vermont voted for Harris, yet they still got Trump.
> in practice it is even more skewed towards 'no' for chat control
My understanding is that the public as a whole do not want chat control, yet the democratically elected heads of each member government do want it. The problem here is the democratically elected heads of each member government.
Doesn't take many council members to be against it to stop it in its tracks.
[1] In fact, we have helpfully seen this play out with our friendly early exiter. The remarkably self-destructive Labour party has passed their own absolute nonsense "online safety" bill, and are likely to be utterly destroyed in the next election with repealing the bill being part of the platform of the party that is polling at ~twice the share of the next largest party. With the EU providing blame-as-a-service, though, it is unlikely that anybody will be able to repeal Chat Control once rammed through, without exiting the EU entirely.