Sideways growth is almost certainly because there is a stronger light source in the direction it is reaching for. Move the plant closer to the light and/or rotate the pot by 1/4 turn every couple of days. If the light is INsufficient, then the plant will become elongated, but by rotating you will force the direction of the growth to remain upright.
The browning symptom might be related to the mint’s. — my first impulse is to suspect some kind of sucking pest. The light marks on the mint might be an obvious clue — I Have a suspicion but hoping someone else will confirm first because it’s not one I’m personally familiar with. With the rosemary, my own first suspect would be mites which is different from what I thought with the mint.
In any case, try examining under the leaves closely with some kind of magnifier — at Least 10x. A jeweler’s loupe or magnifying lense is an essential gardening tool. Sometimes, an option is to use your phone/camera and take macro photos, then look at the images on a computer/larger screen device.
For now, wash the leaves with strong running water or spray from under the leaves with plain water twice a week. Be careful not to wet the rosemary soil too much (wrap with plastic first)
Learning never ends because we can share what we've learned. And in sharing our collective experiences, we gain deeper understanding of what we learned.