TLDR (Assuming the question is about your peers, not your boss/superior). Frame challenge: You can't reliably change other people's opinions. The only thing you can directly influence is yourself and your actions. Accept that others will sometimes have (frustratingly) different opinions than yourself. It is up to you to decide whether you'd like to stay friends/friendly with such a person, or distance yourself from them.
You're asking how to "deal with people who have a negative opinion of pure mathematics" (and presumably share it loudly in front of you).
May I ask, however, what do you want to achieve by "dealing with them"? You obviously seem frustrated by your peers expressing that opinion. So, is your goal to:
- Convince those people that pure mathematics is useful?
- Convince those people that pure mathematics eventually leads to applications?
- Convince those people that pure mathematics is beautiful?
- Make those people passionate about pure mathematics?
- Get those people to fund you to do pure mathematics?
- Become friends with those people?
- Get those people to not insult pure maths in front of you?
- Feel less frustrated?
Because, if your goal is any of 1.--4., that will impossible to achieve with all of your peers. While you may be able to control some aspects of this situation (e.g. the arguments you present), fundamentally, you have no direct influence on the opinions of other people. Ultimately, if your goal is to influence something externally, you will have to accept that your influence is limited. This is also true if you're trying to achieve this as an educator -- even the best lecture in the world will leave some indifferent (which doesn't mean that you shouldn't try).
There are of course some ways you can attempt to influence the people around you with your opinions (maths is useful and beautiful, art enriches people's lives, multitasking reduces overall productivity, walkable neighbourhoods are good for mental health, Thor is the god of thunder, the Earth is flat, heavy metal is the pinnacle of musical achievement, vaccines cause autism) -- posting online, preaching, writing opinion pieces, organising rallies and events, just having passionate 1-on-1 conversations. And, it doesn't matter what the opinion in question is (or even whether it is a fact rather than an opinion) -- you will never be able to convince everybody. The fact of the matter is, people really dislike changing their opinions.
It is my opinion that 5., while related, is off-topic here. (A question on how to get funding if your research is primarily theoretical obviously contains aspects of 1.--4., but is a whole other can of worms and would be better served as a separate question. That I would also like to know the answer to. A similar consideration would be true for any case where your goal is to achieve some tangible benefit -- promotion, raise, recommendation letter. But, your question seems to be focused on peer interactions.)
If your goal is 6. (become friends), but you already tried (and failed) convincing somebody that pure mathematics is useful/beautiful/eventually applied, then it is up to you to decide whether you still want to attempt a friendship. Now, this is finally something within your control. In general, if a person holds an opinion that is different than mine, I don't mind as long as they are not insisting on changing my opinion. You think pure maths is not beautiful, I can find no deeper meaning in the visual arts, but we both like nature so let's go for a hike and be friends. On the other hand, if that person is dismissive/insulting towards you because you hold differing opinions (personal example: "I just don't understand what kind of an idiot you would have to be to spend so long in education, and then choose to spend your time teaching others."), I have to ask, why do want to be friends with that kind of person? I would handle the difference in core and casual beliefs similarly (If you like metal and I like pop, I can try to be friends with you. If your opinion about the relation between vaccines and autism drastically differs from mine... we can be acquaintances, but I don't want to be your friend). Ultimately, you can't be friends with everybody, and that's just something you have to accept.
If your goal is 7. (avoid hearing any "insults" of pure maths), first I'd say to think about how you got in a conversation where somebody is insulting pure maths in front of you. Did you insist on repeatedly discussing a topic with somebody you know has opposing views to yours? (e.g. if you ask somebody for their favourite music genre and they say "pop", but you prefer metal, nobody would consider that an insult. If then you spend the next 30 minutes trying to explain the superiority of harmonies used in metal, would you really be surprised if they asked you to "stop talking about that infernal noise?"). If you're doing so, stop initiating the same topic. Or, do they bring up and insult the topic on their own (e.g. are you joining a group of flat-Earthers in their daily discussion of all the sheeple that still believe in the floating ball in the sky theory)? If so, you could try asking them politely to stop once ("Hey, guys, just because I think it's a ball and you think it's a disk, doesn't mean we can't be nice to each other"), but if they ignore your request... move away. Don't listen. Finally, if they are approaching you on a regular basis to insult you and/or try and change your opinion ("Hi bro, have you come to your senses and accepted that Thor is the embodiment of thunder? You know he will smite you down with his hammer if you don't accept him."), and they don't stop after you've asked them to; they are acting unprofessionally and there might be a bullying case somewhere in there.
Finally, if your goal is 8., then your only option is to learn how to be less bothered by other people's opinions. Surely we've all seen some variation of the meme "Ah, time to spend hours explaining to random strangers on the internet that they are wrong". And I can't imagine that makes them feel better. Since people really dislike changing their opinions, and your external influence is limited, the only thing you can really change is how it effects you. In life, you will encounter, and often have to work with or alongside many people with differing opinions. Learning how to accept differences in opinions will ultimately make it easier for you to make friends, and also make you a more pleasant person to work with professionally.