How can we change the service mode from replicas to global mode with recreating the docker service.
You can't. That is not a supported feature of docker service update. You'll need to delete the service and recreate.
docker service update