This Seeking Tech guide will explain how you can disable cross-platform play in Monster Hunter Wilds.
If you are currently playing Wilds, then you first need to return to the main menu screen.
Afterwards, you need to select Options.
From the Game Settings tab, scroll to the Crossplay setting.
You should then select Disable.