I've used three techniques to deal with this problem, which can be caused by several issues.
Fix the underlying issue
Sometimes it's a result of sloppy framing (misaligned trimmer studs, king studs, and header). It may also be the result of material such as vapor barrier sealant creating spread, or it can be due to lumber in legacy sizes, such as the 3-5/8" stud seen in the 60s and 70s. You may be able to rectify that enough to deal with the problem through various means. Sometimes it's as simple as adding a few more screws through the drywall. Sometimes you need to run a saw down the stud to clear debris.
Trim back the drywall
Do this by cutting through the surface paper about 3/8" (10mm) inside the outer edge of the trim position. Then, either shave down to the level of the jamb or simply fold the edge down tight, depending on whether there's a gap behind. Be sure to vacuum the raw gypsum well so it's not leaking dust for months.
This approach requires a little creativity (compound angles) when doing the casing joints because they'll be tilted, but it can work well. If you don't have a compound miter saw, lift the appropriate end of the workpiece with a block to get a back-tilt.
Install extension jambs
Make them uniform thickness to achieve a level about 80% of the thickest offset. Install them with a reveal (not flush with the jamb), for best appearance. Since most modern jambs have a rounded corner, setting them flush makes an awkward joint, and flush joints are challenging to begin with.