I think that Government of Hungary's stance on U18s banning the sharing of material promoting homosexuality and gender change originates from an earlier incident: a far-right politician shred one of the copies of a recently-pusblished children's book which contains well-known tales reframed in a way in which the hero(es) belong(s) to a stigmatized or minority group. For example, Cinderella is a lesbian in this book. This incident was widely discussed, because one of the most well-known Hungarian pyschologist said that this type of tales can influence the children's orientation at the early childhood. Surprisingly, the Government of Hungary was very quiet in this topic at that time... but now we can see why. This incident didn't escape their attention and they prepared for an extreme action.
Hungary is quite schizophrenic, I would say. There are lot of companies where the employees can be themselves, there are places which are exclusively for LGBTQ+ people, there are famous celebrities who are part of the LGBTQ+ community and you can see people holding each other's hand in the street. On the other hand, the Government bans the sharing of material promoting homosexuality and gender change and some of the fans chanting homophobic slogans.
The situation is the same with antisemitism. We have one of the largest active synagogue in Europe which located in the heart of the city and lot of smaller synagogues and prayer rooms, a Jewish Quarter with traditional kosher restaurant, shops and traditional Orthodox Jews walking on the streets and no one lifts an eyelid.
From my perspective, one of the main culprits is the media and it is going to be even worse in the future as you can see how racism is raising on social media platforms. However, I already went too far from the original topic. I just wanted to add a little context to the banning of the materials which are promoting homosexuality and gender change.