So the trick is understanding that standard servos were never meant to be precision devices, and how to work with how each one is set up.
These almost always use a standard potentiometer internally, and the good news is that they're response by position is pretty linear.
So lets say you have a 180 degree servo, meaning it can turn 180 degrees end to end.
the trick is to discover what the minimum pulse value is for your 0 degree position, and the maximum pulse value for your 180 degree position.
Then you're going to map() your 0,180 range to whatever that pulse range is.
Depending on what you're coding on the specifics look a little different, but that's more or less what you're going to do.
Unless you're talking about the raspberry pi pico, pi's don't do a great job of driving servos. are you using a servo driver board? What's your setup look like?
Alan