OP don't stop taking her out, but before you go to a venue, drill it into her what behaviour is expected from her, not just by you but by everyone else there.
It should help to manage her expectations of the trip too, because without any input beforehand about how you expect her to behave - which is expecting her to behave like everyone else there - she will expect to do what she's always done before in that situation /in that place.
Cinema Trip -
Tell her she's expected to sit quietly and enjoy the film, the same as everyone else who has paid to be there.
Has she ever heard other people in a cinema shout out "jokes"?
The answer to that has to be a resounding no. so then she must have it explained to her in no uncertain terms that if other people don't do that as a matter of course, then she shouldn't do that either.
Restaurant trip - I'm sure you could take her somewhere for tea and cake, so a shorter trip than a full meal out, just the two of you. Again, before entering the premises, outline your expectations of her behavior.
Whilst you are in there, point out that other children are not standing up and singing or doing the things she does in restaurants.
Let her sit and enjoy her tea and cake in silence apart from conversation with you. Point out that's what people want when they go there for tea and cake. They go to enjoy that place and that food and drink with the people they are sitting with. All the people at other tables do not want to listen to some random child suddenly start to sing, get up and dance or anything else.
Never expect her to learn anything by osmosis. Even if something is patently obvious to you, the world and his dog, she could literally not "see" what's acceptable and what's not in a social setting. Explain everything. Especially everything you think she's old enough to know. 