Some simple jobs are fine to do yourself. Others are best left to a technician.
Usually safe:
1. Fitting a screen protector or case.
2. Cleaning ports, speakers and earpieces carefully.
3. Changing a removable battery on older phones.
4. Replacing a cracked camera lens glass on some phones.
Better left to a technician:
1. Glued batteries (fire risk).
2. Glued screens and curved screens.
3. Anything on the board or with soldering.
4. Water damage cleaning.
If you try a repair, buy parts from trusted sellers and watch a guide for your exact model first.