I run a 34 inch at 3440x1440 144hz for Forza and some other games and a 27 inch at 2560x1440 165hz in a stack configuration, 27 inch up top, I don;t have a picture or well I can't be bothered to take a pick and find a site to upload since Tom's Hardware still seems to lack that in 2023 shockingly.
But not, its not bad for dual monitors for productivity, or simply using 1 for looking at discord, system monitors, or youtube, Gaming across 2 monitors which is unlikely what you are asking would be pointless even if both monitors were the same size.
You'll be find, it'll work great, I've been doing it for years, I once has a 27 inch and 24inch back in 2014 and, earlier than that I had a 24 inch and crappy little Emachine 17 inch lol.
Good Luck!