Secondly, any other people's behavior towards you is actually caused by yourself. You don't have to doubt that. If you are frivolous, others will be frivolous to you. If you are serious, others will be serious about you.
Most people joke, only to those who have a sense of security, that is, your own behavior makes others think that you won't be angry when others play jokes on you, or you are really angry, but your performance in communicating with others will make them think that you can accept jokes.
Generally speaking, if you really don't like this, I think you should start from yourself and find out your shortcomings. If you change, why don't others change?