There are several things in play, without more info, we cannot give that silver bullet answer you are looking for
2019 CBC
[BE] RAMP. A walking surface that has a running slope steeper than one unit vertical in 20 units horizontal (5-percent slope).
1010.1.5 Floor Elevation
There shall be a floor or landing on each side of a door. Such floor or landing shall be at the same elevation on each side of the door. Landings shall be level except for exterior landings, which are permitted to have a slope not to exceed 0.25 unit vertical in 12 units horizontal (2-percent slope).
1012.5.3 Restrictions
Means of egress ramps shall not reduce in width in the direction of egress travel. Projections into the required ramp and landing width are prohibited. Doors opening onto a landing shall not reduce the clear width to less than 42 inches (1067 mm).
1012.6 Landings
Ramps shall have landings at the bottom and top of each ramp, points of turning, entrance, exits and at doors. Landings shall comply with Sections 1012.6.1 through 1012.6.5.
1012.6.1 Slope
Landings shall have a slope not steeper than one unit vertical in 48 units horizontal (2-percent slope) in any direction. Changes in level are not permitted.
1012.6.2 Width
The landing width shall be not less than the width of the widest ramp run adjoining the landing.
1012.6.3 Length
The landing length shall be 60 inches (1525 mm) minimum.
1012.6.5 Doorways
Where doorways are located adjacent to a ramp landing, maneuvering clearances required for accessibility are permitted to overlap the required landing area as specified in Chapter 11A, or 11B, as applicable.