As long as you have, in my estimation, about 4 times the RAM-resident size of the OS itself (obviously more is better), then you should be able to do anything, internet or anything else, all depending on how much swap you allocate and minimum RAM-resident/locked requirement of various applications.
I still have my old 'acer swift one' with a Pentium N4200 with 4GB RAM and 128GB SSD. It runs everything I throw at it including video-editing.
I also have a 20 year old ASUS F3T with dual-turion and 3GB RAM which runs Ubuntu-MATE 24.04LTS and although it barely runs youtube videos, it does everything else with ease.