Whirlpool at one time made a compact, stacked washer and dryer. I'm not sure if they still do. We installed a pair in a 2005 Country Coach that we owned. Worked great for the 3 years we owned it. We bought a 2017 fifth wheel a couple of years ago and I let the dealer talk me into the stacked Splendide brand. The dryer takes twice the time to dry as the Whirlpool and the washer is a piece of crap. The first washer was DOA and the replacement's circuit board went out on the second load. They sent me a new circuit board but it's only warranted for one year. We rarely use it. The circuit board is a common problem.
2012 Excel Winslow DT33RLE Travel Trailer
2017 Heartland Bighorn 3890SS
2015 Ford F350 DRW 6.7 Powerstroke