The technical correct solution would be to use the <bdi> HTML tag, but browser support is really bad. ![]()
בית <bdi><b>g</b>, <b>h</b></bdi>
In Chrome it looks like this:
![]()
The following produces the same result and should be supported in all browsers:
בית <span dir="ltr"><b>g</b>, <b>h</b></span>