This article helps you to learn about how to freeze columns or rows in Sheets.
To keep an area of the sheet visible while scrolling, you can use Freeze to lock specific rows or columns.
Select the one or multiple rows/columns you want and click the top toolbar. Choose ... icon - Freeze to lock it.