You can always enable the SSH server on your phone and then SSH in from a full-sized laptop / desktop.
Or you can dock your phone if you have a suitable dock (like the NexDock range).
Just for fun …
You can also plug in a USB ethernet dongle to the Librem 5 and thereby be on the network even if WiFi is proving troublesome. For me this worked out-of-the-box with a dongle that I bought some years before I received my phone (i.e. the dongle was chosen at random, not for compatibility with the Librem 5).