As we said, you will need Minecraft Bedrock Edition in order to play Minecraft across platforms. Once you’ve installed it, you need to sign in with your Microsoft account.
You will then be redirected to aka.ms/remoteconnect where a code will need to be entered in order to connect. Once that’s done, you can choose ‘Play’ to start a crossplay multiplayer session that can be joined by others, irrespective of the platform they are on.