I kept seeing contradictory advice about desk posture, so I went to the source: the Canadian Centre for Occupational Health and Safety (CCOHS) has a set of free pages on office ergonomics. Here is the short version, head to toe:
Screen: top of the screen not above eye level, about an arm's length away.
Lower back: the backrest should fit the hollow of your lower back. If it doesn't, a cushion can fill the gap.
Elbows: about 90 degrees, armrests just touching the underside of the elbows. If armrests are too high, CCOHS says to remove them.
Wrists: straight, in line with the forearm. Interesting detail: a wrist rest should touch the heel or palm of the hand, not the wrist itself, and the evidence on wrist rests goes both ways.
Feet: flat on the floor. If raising your chair to desk height lifts your feet, use a footrest that supports both feet.
Standing desks: the key is alternating. Standing all day has its own problems, and very thick, very soft mats aren't always better.
Sources:
https://www.ccohs.ca/oshanswers/ergonomics/office/chair_adjusting.html
https://www.ccohs.ca/oshanswers/ergonomics/office/wrist.html
https://www.ccohs.ca/oshanswers/ergonomics/office/sit_stand_desk.html
https://www.ccohs.ca/oshanswers/ergonomics/mats.html
Not medical advice; if something hurts, see a professional. What was the one change that made the biggest difference for you?
Disclosure: I run a small desk accessories shop (Difavo), so I spend a lot of time on this topic. No links, just sharing what I found.