Portrait Splash Screen is used in Landscape mode

I’ve created an app, when I run it in portrait mode, my splash screen is fine, but when I run in landscape, even though I’ve generated separate (just with correct aspect ratios) splash screen for landscape mode, still my portrait mode splash screen is displayed.
I’m using ionic 5 and capacitor 2.3