Let $k$ be a field. Under what assumptions on $k$ is the following true?
There exists a hypersurface $H$ of $\mathbb P_k^n$ such that $H$ does not contain any line?
By a hypersurface, I mean an algebraic hypersurface, i.e., "cut out" by a homogeneous polynomial in $k[x_0,\dots,x_n]$ of positive degree. I don't care about the degree of the hypersurface.
Such hypersurfaces exist if $k = \bar k$, as discussed in this post. But I am specifically interested in the case $k = \mathbb F_p$ for a prime $p$. If such hypersurfaces do not exist for this choice of $k$, the following weaker statement would be sufficient for my purposes.
For every large enough $n$, there exists a closed subscheme $X$ of $\mathbb P_k^n$ of dimension $n - O(1)$ such that $X$ does not contain any linear subspace of codimension $\mathrm{dim} X$.
EDIT (2024-06-13): Here is a version of the second statement avoiding big-$O$ notation since that is ambiguous in this context.
There exists a constant $c \in \mathbb N$ such that for every large enough $n$, there exists a closed subscheme $X$ of $\mathbb P_k^n$ of dimension $n - c$ such that $X$ does not contain any linear subspace of dimension $c$.