A phrase asking what one should do or what would be best to do; used to request advice or guidance (very common colloquial).
急に上司に怒られたけど、どうやったらいいか分からない。
My boss suddenly got angry at me, and I don't know what I should do.
英語の試験で点数が伸びない。どうやったらいいか先生に相談してみよう。
My English exam scores aren't improving. I'll ask the teacher what I should do.
部屋が狭くて収納に困っている。どうやったらいいかアイデアはある?
My room is small and storage is a problem. Do you have any ideas about what I should do?