How do I make the games have volume while the phone is silent?

I’m new to IOS 18.2 and have an iPhone 13, I just want the phone to be silent on everything I do except when I listen to music/youtube or play a game, I also want the phone to vibrate when there is an incoming call or a message or an email. Is there a setting for that? I used to have my iPhone 6s back in the day do that