Can you explain how meiosis results in genetic diversity, especially in terms of

Can you explain how meiosis results in genetic diversity, especially in terms of crossing over and independent assortment, compared to mitosis?