You already have the feature in Team Battle League. You just need to tweak it for Dungeon/Mission queues.
If there’s not enough people within the same levels, just put the available players into the same dungeon/mission and make their level scale to the highest level in the party.
Of course you’d have to make it so they get the experience points according to their true level.