Option 1
Control-click or Right-click the layer mask.. and choose Apply Layer Mask
This "bakes in" the layer mask with the layer removing portions of the image layer which are hidden by the mask. In other words, it sort of "flattens" the layer with the mask, removing the mask. This is a destructive technique, meaning once you do it, you can no longer re-edit the layer mask or get the hidden layer pixels back (short of undo or history).
This leaves behind just the visible pixels on the layer.
Option 2
Control-click or Right-click the layer name in the Layers Panel and choose Covert to Smart Object. This will create an embedded "group" of the layer and its mask resulting in transform handles only encompassing visible pixels. This is a non-destructive technique. It doesn't remove or "bake in" anything. It merely alters how the layer data is accessible and handled. To edit the mask in the future, you would double-click the Smart Object layer.
To read more on Smart Objects, see here: https://helpx.adobe.com/photoshop/using/create-smart-objects.html