Thank you @gold-developer. It did work for larger screens but for some reason isn't working for ver small ones. The below one worked fine - is it safe to use this?
.entry-content pre, .qa-q-view-content pre, .qa-a-item-content pre, .qa-c-item-content pre {
white-space: pre-wrap !important;
}