Godot outline it here https://docs.godotengine.org/en/stable/tutorials/platform/co...
But there are essentially third party forks of the engine with platform support added in.