I dont have that problem on my 1 year old Android 9 OS tablet.
I dont have that problem on my 5 year old Android 4 OS tablet either.
You need to stop buying devices from 8+ years ago.
I'm currently using this thing
https://www.gsmarena.com/asus_fonepad_8_fe380cg-6411.php
I left My 6GB ram phone in the work room.
Btw you really are quite lucky. On Android 4 era, browser tab (was window) auto removed from memory was basically the normal behavior for any Android phones, Including flagships. Various minfree tweak floods xda developers, various "ram booster" App floods play store.
Things gets so bad, Google developed ways for app to save its state. So it can "restore" its state after being auto cleared from memory. But like any other Google initiatives on Android, even right now, many apps still doesn't use it.
The more hilarious thing, even on Android 10, with 6GB (or more) of ram, if you use non stock Android, your OEM-customized Android may still auto clear apps from RAM.
From my experience, the worst to best non stock Android at not clearing stuff from RAM:
1. Oppo/realme.
2. Xiaomi/redmi.
3. Samsung.
4. Sony.
Oppo/realme is so bad, it will still clear apps from memory even when you specifically mark it as "do not optimize" and put a lock on it on the task manager / switcher. It may not immediately close the app when you leave it, but leave it for a few hours or a few days, the app will get killed. Rather problematic if you need an app that stays running but will almost never get any user interaction: like Bluetooth tracker app.
Sony have weird exception tho. Years ago they have Sony Xperia SP that have RGB Led stripe as one of its selling point and major design. But on one of the update Sony forgot to flag the LED service as "don't kill, ever" and it will randomly stops beating to the music beats. Fixed with an update.
Samsung memory management is weird. As long as you don't fill the memory to the brim, it's fine. But if you fill it to the brim, instead of killing oldest app, the killings feels random. Sometimes even the app before the one you just switched. At least that was in Android 9 with galaxy note 8.