I do this all the time. Out of a dozen laptops around here (Apple, Dell, Lenovo) none have broken over the years. I usually just outgrow them, or the batteries lose their ability to hold a charge.
Thinking about this, I realize that all of my laptops fall into four categories: (1) MacBooks ——these are made of metal and are quite rigid and strong, (2) large screened Dells, too heavy to pick up comfortably with one hand, (3) Lenovo Thinkpads that are thin but very lightweight, and (4) a couple of Chromebooks that sit permanently on a desk for web use only and don’t get picked up. In all of these cases, there is little danger that I will injure them by handling them as you’ve described.