There is no change from Matthew 5:4.
The contrast here is between the great sadness of mourning, and the idea that they would be comforted. Typically, mourning is associated with the death of a loved one. The comfort that Jesus promises is the resurrection. In the next life, the sadness of our earth life will be turned to joy, for we will be with our loved ones again.