You did not mention what the issue is. What exactly is broken?
If you know what is broken and what parts need to be replaced, then you may be good fixing it yourself. But if you are unsure, working on a sunroof can be a bit of a challenge. I have not done this myself but had the pleasure of watching the dealer try and fix our 2004 Sienna sunroof 4 times. I know it’s a different vehicle but I would imagine they are similar. Each time the dealer worked on it they had to remove the headliner to get to the parts and removing the headliner required them to remove a lot of the interior trim panels. Which of course they damaged. Anyway, if I remember correctly the bill was near $1200.00 each time. Thankfully it was covered under warranty so we did not have to pay. Seeing that it took the dealer 4 times to get it fixed I am guessing that sunroofs are tricky to work on. But then again we are talking dealer mechanics here.