Use the phone as you carry it
Measure the phone with its case and note how you normally carry it, screen facing in or out. Try your reference shorts on a chair and then stand up. A phone that touches the thigh in both positions can be comfortable, while a corner under the hip crease may become noticeable only after sitting.
Read pocket depth and opening together
Ask for the depth along the stitched side and a photo of the pocket opening while the shorts lie flat. In a hypothetical example, a 16 cm phone fits into a 19 cm pocket, but the opening angles forward and a stiff case catches on its edge. Draw the phone outline on paper and place it over a reference photo to see what further evidence you need.
Decide which position matters most
If the shorts are for travel, test how you retrieve a phone while seated and whether it rises out of the pocket when standing. Mark ease of retrieval and retention as separate checks. A closable pocket is useful evidence of retention only if you can still work the closure with the phone and case inside.